From 0f717e81c0b467ec599d77d4f9e7d0464c39b647 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Fri, 3 Nov 2023 22:08:23 -0500 Subject: [PATCH] Patch link issue with delimit due to breaking change in Hugo v0.120 References: - https://github.com/gohugoio/hugo/releases/tag/v0.120.0 - https://github.com/gohugoio/hugo/issues/10876 - https://github.com/gohugoio/hugo/issues/11502 --- layouts/partials/page-metadata/item/authors.html | 4 ++-- layouts/partials/page-metadata/item/categories.html | 2 +- layouts/partials/page-metadata/item/series.html | 2 +- layouts/partials/page-metadata/item/tags.html | 2 +- layouts/partials/series-box.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/page-metadata/item/authors.html b/layouts/partials/page-metadata/item/authors.html index 6a578a8..58ed963 100644 --- a/layouts/partials/page-metadata/item/authors.html +++ b/layouts/partials/page-metadata/item/authors.html @@ -6,9 +6,9 @@ {{ $authors := slice }} {{ range . }} {{ $url := (printf "authors/%s" (. | anchorize)) | absLangURL }} - {{ $authors = $authors | append (printf `%s` $url . | safeHTML) }} + {{ $authors = $authors | append (printf `%s` $url .) }} {{ end }} - {{ delimit $authors ", " }} + {{ delimit $authors ", " | safeHTML }} {{ else }} {{ delimit . ", " }} {{ end }} diff --git a/layouts/partials/page-metadata/item/categories.html b/layouts/partials/page-metadata/item/categories.html index 4c76577..469f26a 100644 --- a/layouts/partials/page-metadata/item/categories.html +++ b/layouts/partials/page-metadata/item/categories.html @@ -6,6 +6,6 @@
{{ partial "icon.html" "folder" }} - {{ delimit $categories ", " }} + {{ delimit $categories ", " | safeHTML }}
{{ end }} diff --git a/layouts/partials/page-metadata/item/series.html b/layouts/partials/page-metadata/item/series.html index d028d0a..1ea5806 100644 --- a/layouts/partials/page-metadata/item/series.html +++ b/layouts/partials/page-metadata/item/series.html @@ -6,6 +6,6 @@
{{ partial "icon.html" "files" }} - {{ delimit $series ", " }} + {{ delimit $series ", " | safeHTML }}
{{ end }} diff --git a/layouts/partials/page-metadata/item/tags.html b/layouts/partials/page-metadata/item/tags.html index a203ab3..054f0f8 100644 --- a/layouts/partials/page-metadata/item/tags.html +++ b/layouts/partials/page-metadata/item/tags.html @@ -6,6 +6,6 @@
{{ partial "icon.html" "tag" }} - {{ delimit $tags ", " }} + {{ delimit $tags ", " | safeHTML }}
{{ end }} diff --git a/layouts/partials/series-box.html b/layouts/partials/series-box.html index 7e49bae..4a5aedf 100644 --- a/layouts/partials/series-box.html +++ b/layouts/partials/series-box.html @@ -12,6 +12,6 @@ This post is part of a series: {{ end }} - {{ delimit $series ", " }} + {{ delimit $series ", " | safeHTML }} {{ end }}