Merge pull request #767 from voigt/766_-_fix_fathom_analytics_config

766 - fix analytics partial to make fathom analytics configurable
This commit is contained in:
Nuno Coração 2023-06-06 21:25:36 +01:00 committed by GitHub
commit 4ec5848594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 }}