From 2ffaf12d154b873a7617c338df39b38f8dadeb29 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2026 17:47:57 +0000 Subject: [PATCH 1/3] chore(deps): update hugo to v0.171.0 | datasource | package | from | to | | --------------- | --------------------- | -------- | -------- | | docker | ghcr.io/gohugoio/hugo | v0.170.1 | v0.171.0 | | github-releases | gohugoio/hugo | v0.170.1 | v0.171.0 | Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/hugo_build.yml | 2 +- .github/workflows/hugo_check.yml | 2 +- README.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hugo_build.yml b/.github/workflows/hugo_build.yml index 2724fe7e..2e6de0ac 100644 --- a/.github/workflows/hugo_build.yml +++ b/.github/workflows/hugo_build.yml @@ -40,7 +40,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@d1c81a15d4e6dca7086a17b9c2565cb70fd576bf # v3 with: - hugo-version: "0.170.1" + hugo-version: "0.171.0" extended: true - name: Build diff --git a/.github/workflows/hugo_check.yml b/.github/workflows/hugo_check.yml index 9e52c672..8b24f24c 100644 --- a/.github/workflows/hugo_check.yml +++ b/.github/workflows/hugo_check.yml @@ -25,7 +25,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@d1c81a15d4e6dca7086a17b9c2565cb70fd576bf # v3 with: - hugo-version: "0.170.1" + hugo-version: "0.171.0" extended: true - name: Build diff --git a/README.md b/README.md index 8bce4e3e..8b360afc 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ docker run --rm \ -e HOME=/tmp \ -v "$(pwd)":/project \ --entrypoint sh \ - ghcr.io/gohugoio/hugo:v0.170.1 \ + ghcr.io/gohugoio/hugo:v0.171.0 \ -c "npm install && npm run dev -- --bind 0.0.0.0 -p 8080 -F" ``` From 1a38be54e367f9f0b6fedce56c60be068cd290c3 Mon Sep 17 00:00:00 2001 From: Marco Nenciarini Date: Thu, 3 Dec 2026 09:15:17 +0100 Subject: [PATCH 2/3] fix(build): disable embedded link render hook Hugo 0.171 enables it by default. It resolves links to the static docs under assets/ as resources and fails to publish them over existing directories. Signed-off-by: Marco Nenciarini --- config.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.toml b/config.toml index a43ab4b7..c853f32d 100644 --- a/config.toml +++ b/config.toml @@ -20,3 +20,8 @@ staticDir = ['assets'] [taxonomies] author = 'authors' tag = 'tags' + +# Hugo 0.171 enables the embedded link hook by default. It resolves our +# absolute /documentation/... links to static dirs and fails to publish them. +[markup.goldmark.renderHooks.link] + useEmbedded = "never" From 3b88584c3034fc3d10552f5dbe6e84850724089c Mon Sep 17 00:00:00 2001 From: Francesco Canovai Date: Thu, 3 Dec 2026 09:37:59 +0100 Subject: [PATCH 3/3] chore(config): replace deprecated languageCode with locale Hugo 0.158 deprecated the languageCode config key and .Site.LanguageCode in favour of locale and .Site.Language.Locale. Signed-off-by: Francesco Canovai --- config.toml | 2 +- layouts/home.rss.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index c853f32d..1de3e18a 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ baseURL = 'https://cloudnative-pg.io' -languageCode = 'en-us' +locale = 'en-us' title = 'CloudNativePG - PostgreSQL Operator for Kubernetes' staticDir = ['assets'] diff --git a/layouts/home.rss.xml b/layouts/home.rss.xml index b9d989e7..3b604f45 100644 --- a/layouts/home.rss.xml +++ b/layouts/home.rss.xml @@ -37,7 +37,7 @@ {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }} Hugo - {{ site.LanguageCode }}{{ with $authorEmail }} + {{ site.Language.Locale }}{{ with $authorEmail }} {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with .Site.Copyright }} {{ . }}{{ end }}{{ if not .Date.IsZero }}