🚚 Move files around as per new Hugo layouts directory structure

This commit is contained in:
James Panther
2025-06-22 14:20:15 +10:00
parent ab268a7396
commit 99d5cf8b28
62 changed files with 55 additions and 43 deletions
+25
View File
@@ -0,0 +1,25 @@
{{ if hugo.IsProduction }}
{{ with .Site.Params.fathomAnalytics.site }}
<script defer src="https://cdn.usefathom.com/script.js" data-site="{{ . }}"></script>
{{ end }}
{{ with site.Params.plausibleAnalytics.domain }}
<script
defer
data-domain="{{ . }}"
data-api="{{ default "https://plausible.io/api/event" site.Params.plausibleAnalytics.event }}"
src="{{ default "https://plausible.io/js/script.js" site.Params.plausibleAnalytics.script }}"
></script>
{{ end }}
{{ with site.Params.umamiAnalytics }}
{{- $region := "eu" }}
{{- if isset . "region" }}
{{- $region = .region }}
{{- end }}
<script
defer
src="https://{{ $region }}.umami.is/script.js"
data-website-id="{{ .site }}"
></script>
{{ end }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}