🎨 Code cleanup

This commit is contained in:
James Panther
2024-05-01 15:17:15 +10:00
parent 0561b834c8
commit 4b3038bb49
10 changed files with 50 additions and 44 deletions

View File

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