diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml index d23208f..4b7e4b2 100644 --- a/.idea/jsLibraryMappings.xml +++ b/.idea/jsLibraryMappings.xml @@ -1,6 +1,6 @@ - + - \ No newline at end of file + diff --git a/.idea/les-particules-org.iml b/.idea/les-particules-org.iml index d3f1fda..ab5bff8 100644 --- a/.idea/les-particules-org.iml +++ b/.idea/les-particules-org.iml @@ -9,5 +9,6 @@ + - \ No newline at end of file + diff --git a/src/components/Plausible.astro b/src/components/Plausible.astro new file mode 100644 index 0000000..0ecdd96 --- /dev/null +++ b/src/components/Plausible.astro @@ -0,0 +1,5 @@ +--- +const domain = import.meta.env.PLAUSIBLE_DOMAIN; +--- + + diff --git a/src/env.d.ts b/src/env.d.ts index 987f1e2..89fa5bf 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -2,6 +2,6 @@ interface ImportMetaEnv { readonly CONTENTFUL_SPACE_ID: string; readonly CONTENTFUL_DELIVERY_TOKEN: string; - readonly CONTENTFUL_PREVIEW_TOKEN: string; readonly WEBHOOK_TOKEN: string; + readonly PLAUSIBLE_DOMAIN: string; } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index e06d8bc..da3dc2e 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,4 +1,6 @@ --- +import Plausible from "../components/Plausible.astro"; + export interface Props { title: string; } @@ -28,6 +30,7 @@ const { title } = Astro.props;
© Les Particules 2024
+