build: bump Hugo to 0.162.1 and fix deferred CSS template

Hugo 0.162 disallows templates.Defer inside a partialCached partial.
The CSS partial uses templates.Defer with a global key, so switch its
caller in head.html from partialCached to partial (the global Defer key
already dedupes the work). Bump the pinned Hugo version in the Dockerfile
and netlify.toml.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
David Karlsson
2026-06-04 11:05:31 +02:00
parent 58199af7f2
commit 4595cae8ac
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
/>
{{- end -}}
{{ end -}}
{{ partialCached "utils/css.html" "-" "-" }}
{{ partial "utils/css.html" . }}
<link href="/pagefind/pagefind-component-ui.css" rel="stylesheet" />
{{- if hugo.IsProduction -}}
<script