diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1f8aa7e2..f42ce262 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -40,7 +40,7 @@ {{ $app := resources.Get "/js/app.js" }} - {{- if not .Site.IsServer }} + {{- if not hugo.IsServer }} {{- $js := (slice $app) | resources.Concat "/js/bundle.js" | minify | fingerprint "sha384" }} {{- else }} diff --git a/layouts/partials/docs/footer/footer-scripts.html b/layouts/partials/docs/footer/footer-scripts.html index 798ea070..cfa233de 100644 --- a/layouts/partials/docs/footer/footer-scripts.html +++ b/layouts/partials/docs/footer/footer-scripts.html @@ -49,7 +49,7 @@ {{ $js := $slice | resources.Concat (printf "/%s/%s" ($.Scratch.Get "pathName") "js/bundle.js") -}} -{{- if not .Site.IsServer }} +{{- if not hugo.IsServer }} {{- $js := $js | minify | fingerprint "sha384" }} {{- else }} diff --git a/layouts/partials/docs/head.html b/layouts/partials/docs/head.html index 0369834d..ed0eaabf 100644 --- a/layouts/partials/docs/head.html +++ b/layouts/partials/docs/head.html @@ -42,7 +42,7 @@ {{ if and (.Site.Params.docsearch.appID) (.Site.Params.docsearch.apiKey) -}} {{ else }} {{ $flexSearch := resources.Get (printf "/%s/%s" ($.Scratch.Get "pathName") "js/flexsearch.bundle.js") }} - {{- if not .Site.IsServer }} + {{- if not hugo.IsServer }} {{ $flexSearch := $flexSearch | minify | fingerprint "sha384" }} {{ else }} @@ -93,13 +93,13 @@ {{- partialCached (printf "%s/%s" ($.Scratch.Get "pathName") "footer/katex.html") . -}} {{ end }} - {{- if not .Site.IsServer }} + {{- if not hugo.IsServer }} {{ if and (.Site.Params.plausible.scriptURL | default "https://plausible.io") (.Site.Params.plausible.dataDomain) -}} {{- partialCached (printf "%s/%s" ($.Scratch.Get "pathName") "head/plausible") . }} {{- end -}} {{- end -}} - {{- if not .Site.IsServer }} + {{- if not hugo.IsServer }} {{- if .Site.GoogleAnalytics }} {{- template "_internal/google_analytics.html" . -}} {{- end -}} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e3fbcf3e..9517816d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -39,7 +39,7 @@ {{ if ($.Scratch.Get "image_compare_enabled") }} {{ $imagecompare := resources.Get "js/image-compare-viewer.min.js" }} - {{- if not .Site.IsServer }} + {{- if not hugo.IsServer }} {{- $js := (slice $imagecompare) | resources.Concat "/js/image-compare.js" | minify | fingerprint "sha384" }} {{- else }} @@ -48,13 +48,13 @@ {{- end }} {{- end }} - {{- if not .Site.IsServer }} + {{- if not hugo.IsServer }} {{ if and (.Site.Params.plausible.scriptURL) (.Site.Params.plausible.dataDomain) -}} {{- partialCached "head/plausible" . }} {{- end -}} {{- end -}} - {{- if not .Site.IsServer }} + {{- if not hugo.IsServer }} {{- if .Site.GoogleAnalytics }} {{- template "_internal/google_analytics.html" . -}} {{- end -}}