Enable Umami analytics in Production only

This will prevent analytics collection when testing locally.
This commit is contained in:
Nick Savage 2024-09-02 20:26:50 +01:00
parent 68babca981
commit bd7c9edc04
No known key found for this signature in database

View File

@ -34,8 +34,9 @@
{{ if hugo.IsProduction }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
{{ if .Site.Params.umami.enable }}
{{ partial "umami.html" . }}
{{ end }}
{{ end }}