From 87b923becd09dce36892217ac05ccb3a11509583 Mon Sep 17 00:00:00 2001 From: Salman Quazi Date: Mon, 9 Sep 2024 10:56:02 -0700 Subject: [PATCH] Make this compatible with v0.120.0 of hugo --- layouts/_default/baseof.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0663b80a7..f75ffe8dd 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,7 @@ {{ block "main" . -}}{{- end }} - {{ if not .Site.IsServer }} + {{ if ne hugo.Environment "development" }} {{ template "_internal/google_analytics.html" . }} {{ end }}