From 914cb6918557c2e5eaa361677031c4fc9b473c90 Mon Sep 17 00:00:00 2001 From: Sebastian Plattner Date: Thu, 15 Aug 2024 14:11:56 +0200 Subject: [PATCH] don't use deprecated value .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in Hugo 0.133.0. Use hugo.IsServer instead. --- layouts/partials/hooks/body-end.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/hooks/body-end.html b/layouts/partials/hooks/body-end.html index f80f218..b7d0767 100644 --- a/layouts/partials/hooks/body-end.html +++ b/layouts/partials/hooks/body-end.html @@ -14,7 +14,7 @@ {{ if $jsLibs }} {{ $jsSite := $jsLibs | resources.Concat "js/site.js" }} - {{ if not .Site.IsServer }} + {{ if not hugo.IsServer }} {{ $jsSite = $jsSite | minify }} {{ end }} {{ $jsSite = $jsSite | fingerprint }}