From 560be15863a83bc8ce4efbd9fa5c3de511d99934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89douard?= Date: Thu, 11 Apr 2024 23:36:07 +0200 Subject: [PATCH 1/2] Compatibility issue with delimit https://github.com/adityatelange/hugo-PaperMod/issues/1325 --- themes/PaperMod/layouts/partials/post_meta.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/PaperMod/layouts/partials/post_meta.html b/themes/PaperMod/layouts/partials/post_meta.html index 15b8b1bd..2e6e42db 100644 --- a/themes/PaperMod/layouts/partials/post_meta.html +++ b/themes/PaperMod/layouts/partials/post_meta.html @@ -17,5 +17,5 @@ {{- end }} {{- with ($scratch.Get "meta") }} -{{- delimit . " · " -}} +{{- delimit . " · " | safeHTML -}} {{- end -}} From 85dc8c8307dec5117f114d6f3ba6f792ca977023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89douard?= Date: Thu, 11 Apr 2024 23:36:41 +0200 Subject: [PATCH 2/2] Compatibility issue with delimit https://github.com/adityatelange/hugo-PaperMod/issues/1325 --- themes/PaperMod/layouts/partials/author.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/PaperMod/layouts/partials/author.html b/themes/PaperMod/layouts/partials/author.html index 8f2758fa..6ec96390 100644 --- a/themes/PaperMod/layouts/partials/author.html +++ b/themes/PaperMod/layouts/partials/author.html @@ -2,7 +2,7 @@ {{- $author := (.Params.author | default site.Params.author) }} {{- $author_type := (printf "%T" $author) }} {{- if (or (eq $author_type "[]string") (eq $author_type "[]interface {}")) }} -{{- (delimit $author ", " ) }} +{{- (delimit $author ", " | safeHTML ) }} {{- else }} {{- $author }} {{- end }}