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" ``` diff --git a/config.toml b/config.toml index a43ab4b7..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'] @@ -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" 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 }}