From 2ac31caa877a8a0f14a317b481e5778127e379e2 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 17 Mar 2026 07:31:05 +0100 Subject: [PATCH 1/5] deps: upgrade hugo to v0.158.0 Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- Dockerfile | 2 +- netlify.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a881a0e37a..a704ced42f 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.156.0 +ARG HUGO_VERSION=0.158.0 ARG NODE_VERSION=22 ARG PAGEFIND_VERSION=1.5.0-beta.1 diff --git a/netlify.toml b/netlify.toml index ce8afffe48..43fefc40ee 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,7 +4,7 @@ publish = "public" [context.deploy-preview.environment] NODE_VERSION = "22" NODE_ENV = "production" -HUGO_VERSION = "0.156.0" +HUGO_VERSION = "0.158.0" HUGO_ENABLEGITINFO = "true" HUGO_ENVIRONMENT = "preview" SECRETS_SCAN_OMIT_PATHS = "public/contribute/file-conventions/index.html" From 0eb47623bc6970608b63874fc96214cc3af97833 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 17 Mar 2026 07:32:04 +0100 Subject: [PATCH 2/5] deps: upgrade node to v24 Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- Dockerfile | 2 +- netlify.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a704ced42f..9518847b8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG GO_VERSION=1.26 ARG HTMLTEST_VERSION=0.17.0 ARG VALE_VERSION=3.11.2 ARG HUGO_VERSION=0.158.0 -ARG NODE_VERSION=22 +ARG NODE_VERSION=24 ARG PAGEFIND_VERSION=1.5.0-beta.1 # base defines the generic base stage diff --git a/netlify.toml b/netlify.toml index 43fefc40ee..8fe1b2173c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,7 +2,7 @@ publish = "public" [context.deploy-preview.environment] -NODE_VERSION = "22" +NODE_VERSION = "24" NODE_ENV = "production" HUGO_VERSION = "0.158.0" HUGO_ENABLEGITINFO = "true" From c3d814812fe102cb3b765f6a5b90b7405bed9887 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 17 Mar 2026 08:44:59 +0100 Subject: [PATCH 3/5] hugo: use partialCached for static templates Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- layouts/_partials/content-default.html | 2 +- layouts/_partials/head.html | 2 +- layouts/_partials/md-dropdown.html | 4 ++-- layouts/baseof.html | 2 +- layouts/cli.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/_partials/content-default.html b/layouts/_partials/content-default.html index 7d148d8144..27f741a1ff 100644 --- a/layouts/_partials/content-default.html +++ b/layouts/_partials/content-default.html @@ -2,7 +2,7 @@

{{ .Title | safeHTML }}

diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html index ea19cfcd95..e57796eeae 100644 --- a/layouts/_partials/head.html +++ b/layouts/_partials/head.html @@ -4,7 +4,7 @@ {{- range .AlternativeOutputFormats -}} {{ end -}} -{{ partial "utils/css.html" "-" }} +{{ partialCached "utils/css.html" "-" "-" }} {{- if hugo.IsProduction -}}