From bd7c9edc04592392cedaab5d55bc3637404aea02 Mon Sep 17 00:00:00 2001 From: Nick Savage Date: Mon, 2 Sep 2024 20:26:50 +0100 Subject: [PATCH] Enable Umami analytics in Production only This will prevent analytics collection when testing locally. --- layouts/partials/head.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 81d6edd..0a704fd 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -34,8 +34,9 @@ {{ if hugo.IsProduction }} {{ template "_internal/google_analytics.html" . }} -{{ end }} {{ if .Site.Params.umami.enable }} {{ partial "umami.html" . }} {{ end }} +{{ end }} +