From 0b466d4a22bf8821e8dfc102bb31b1bd580e96c7 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Tue, 27 Oct 2026 11:53:26 +0100 Subject: Fix .Site.IsServer with hugo.IsServer Requested by Al, thanks. Note that this has also been fixed in the upstream theme, but this fork had not applied the fix yet. --- layouts/_default/baseof.html | 2 +- layouts/partials/head.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c974111..96874c4 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -11,7 +11,7 @@ {{- partial "footer.html" . -}} - {{ if and (not .Site.IsServer) .Site.Data.consent }} + {{ if and (not hugo.IsServer) .Site.Data.consent }} {{- partial "consent.html" . -}} {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0e97a2c..653327e 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,7 +21,7 @@ {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - {{ if not .Site.IsServer }} + {{ if not hugo.IsServer }} {{ template "_internal/google_analytics.html" . }} {{ end }} -- cgit v1.2.3