766 - fix analytics partial to make fathom analytics configurable

This commit is contained in:
Christoph Voigt 2023-06-06 10:31:44 +02:00
parent 02da08de65
commit 74a09bab49
No known key found for this signature in database

View file

@ -1,6 +1,6 @@
{{ with site.Params.fathomAnalytics.site }}
{{ if isset $.Site.Params.fathomanalytics "domain" }}
<script defer src="https://{{ $.Site.Params.fathomanalytics.domain }}/script.js" data-site="{{ . }}"></script>
{{ if isset $.Params.fathomAnalytics "domain" }}
<script defer src="https://{{ $.Params.fathomAnalytics.domain }}/script.js" data-site="{{ . }}"></script>
{{ else }}
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
{{ end }}