From 4595cae8acbc4ceb2d32d21d05934ffef8d3ce04 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 4 Jun 2026 11:05:31 +0200 Subject: [PATCH] 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) --- Dockerfile | 2 +- layouts/_partials/head.html | 2 +- netlify.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a2c96589c4..6bb6c42693 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ARG ALPINE_VERSION=3.23 ARG GO_VERSION=1.26 ARG HTMLTEST_VERSION=0.17.0 ARG VALE_VERSION=3.11.2 -ARG HUGO_VERSION=0.161.1 +ARG HUGO_VERSION=0.162.1 ARG NODE_VERSION=24 ARG PAGEFIND_VERSION=1.5.2 diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html index 113151d7a6..6eaf78e3b2 100644 --- a/layouts/_partials/head.html +++ b/layouts/_partials/head.html @@ -16,7 +16,7 @@ /> {{- end -}} {{ end -}} -{{ partialCached "utils/css.html" "-" "-" }} +{{ partial "utils/css.html" . }} {{- if hugo.IsProduction -}}