diff --git a/config.yaml b/config.yaml index 0f6433105d4905fdf8d9ead0ce08c6989e6cf852..41c2fbb984c1793e9b3ce1ef19d13d5a96773f4a 100644 --- a/config.yaml +++ b/config.yaml @@ -6,6 +6,7 @@ params: page: https://gdpr.eu/cookies/ breadcrumb: position: hero-start # hero-start | hero-end | after-hero + plausible: posts: default_image: false index: diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 8dd9d91db41e715f57aca9ba2af5741c1cacc9dc..a848f58a66f436d9913a1f2f7ddae9a031384c2b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -22,6 +22,7 @@ </main> {{- partial "footer/footer.html" . -}} {{- partial "footer/cookie-banner.html" . -}} + {{- partial "footer/plausible.html" . -}} {{- partial "footer/js.html" . -}} {{- partial "footer/script.html" . -}} {{- if not hugo.IsProduction -}} diff --git a/layouts/partials/footer/plausible.html b/layouts/partials/footer/plausible.html new file mode 100644 index 0000000000000000000000000000000000000000..21363a4360fdfc9d6ce101b480d81557ced6b99c --- /dev/null +++ b/layouts/partials/footer/plausible.html @@ -0,0 +1,3 @@ +{{ with site.Params.plausible }} +<script defer data-domain="{{ . }}" src="https://plausible.io/js/script.js"></script> +{{ end }} \ No newline at end of file