From bafdbac47e8cfb21ac48bc3c24267979bfddb70a Mon Sep 17 00:00:00 2001 From: jtbx Date: Wed, 23 Jul 2025 21:09:05 +0200 Subject: [PATCH 1/4] CI: Move from gitlab to hugomods docker image See https://gitlab.com/pages/hugo#deprecation-of-container-registry --- .forgejo/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 25ff1e8..b61fb68 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -13,7 +13,7 @@ jobs: build: runs-on: docker container: - image: registry.gitlab.com/pages/hugo/hugo_extended:latest + image: hugomods/hugo:exts-0.140.2 steps: - name: Pipeline info run: | -- 2.49.0 From 8cae9bfc9a9c6b7cd6bf13e9b4c1faa970007a29 Mon Sep 17 00:00:00 2001 From: jtbx Date: Thu, 24 Jul 2025 10:05:09 +0200 Subject: [PATCH 2/4] Theme: Fix author names for hugo v0.123.0/ v0.123.3 Hugo v0.123.0 started to capitalize the title of term pages. v0.123.3 introduced config parameters to disable that behaviour. --- hugo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hugo.toml b/hugo.toml index 48f4842..534cd0e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -4,6 +4,8 @@ defaultContentLanguage = 'de' timeZone = 'Europe/Berlin' title = 'CCC Hansestadt Hamburg e.V.' theme = 'ccchh' +capitalizeListTitles = false +pluralizeListTitles = false cleanDestinationDir = true enableGitInfo = true -- 2.49.0 From 33154e80d23fcad86da6e6699ab0c404ee9221e0 Mon Sep 17 00:00:00 2001 From: jtbx Date: Thu, 24 Jul 2025 10:36:11 +0200 Subject: [PATCH 3/4] Theme: Fix summary for v0.134.0 Hugo v0.134.0 changed the return value of the content summary to always be HTML instead of plain text. So we don't need the work around any more. --- themes/ccchh/layouts/_default/summary.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/themes/ccchh/layouts/_default/summary.html b/themes/ccchh/layouts/_default/summary.html index e37c9a6..80afafd 100644 --- a/themes/ccchh/layouts/_default/summary.html +++ b/themes/ccchh/layouts/_default/summary.html @@ -1,11 +1,7 @@
{{- partial "blog-header.html" (dict "headingLink" true "level" 2 "page" . ) }}
- {{- if in .RawContent " " }} {{ .Summary | safeHTML }} - {{- else }} -

{{ .Summary | safeHTML }}

- {{- end }} {{- if .Truncated }} {{- end }} -- 2.49.0 From e334e896a80dbd370a0afd0b573eb405c533d24f Mon Sep 17 00:00:00 2001 From: jtbx Date: Wed, 23 Jul 2025 20:44:50 +0200 Subject: [PATCH 4/4] Theme,CI: Update hugo and fix for hugo v0.146 hugo 0.146.0 refactored the template system and changed where some internal templates are located. --- .forgejo/workflows/deploy.yaml | 2 +- hugo.toml | 2 ++ themes/ccchh/layouts/partials/pagination.html | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index b61fb68..65befb1 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -13,7 +13,7 @@ jobs: build: runs-on: docker container: - image: hugomods/hugo:exts-0.140.2 + image: hugomods/hugo:exts-0.148.1 steps: - name: Pipeline info run: | diff --git a/hugo.toml b/hugo.toml index 534cd0e..3b2548b 100644 --- a/hugo.toml +++ b/hugo.toml @@ -11,6 +11,8 @@ cleanDestinationDir = true enableGitInfo = true # paginate = 10 +[markup.goldmark.renderer] + unsafe = true [outputs] home = ['html'] diff --git a/themes/ccchh/layouts/partials/pagination.html b/themes/ccchh/layouts/partials/pagination.html index 87f3a34..0fecc16 100644 --- a/themes/ccchh/layouts/partials/pagination.html +++ b/themes/ccchh/layouts/partials/pagination.html @@ -20,7 +20,7 @@ {{- if in $validFormats $format }} {{- if gt $page.Paginator.TotalPages 1 }}
    - {{- partial (printf "partials/inline/pagination/%s" $format) $page }} + {{- partial (printf "inline/pagination/%s.html" $format) $page }}
{{- end }} {{- else }} @@ -29,7 +29,7 @@ {{/* Format: default {{/* --------------------------------------------------------------------- */}} -{{- define "partials/inline/pagination/default" }} +{{- define "_partials/inline/pagination/default.html" }} {{- with .Paginator }} {{- $currentPageNumber := .PageNumber }} @@ -100,7 +100,7 @@ {{/* Format: terse {{/* --------------------------------------------------------------------- */}} -{{- define "partials/inline/pagination/terse" }} +{{- define "_partials/inline/pagination/terse.html" }} {{- with .Paginator }} {{- $currentPageNumber := .PageNumber }} -- 2.49.0