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
This commit is contained in:
BBaoVanC 2023-11-03 22:08:23 -05:00
parent ede5958a46
commit 0f717e81c0
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
5 changed files with 6 additions and 6 deletions

View File

@ -6,9 +6,9 @@
{{ $authors := slice }} {{ $authors := slice }}
{{ range . }} {{ range . }}
{{ $url := (printf "authors/%s" (. | anchorize)) | absLangURL }} {{ $url := (printf "authors/%s" (. | anchorize)) | absLangURL }}
{{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url . | safeHTML) }} {{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url .) }}
{{ end }} {{ end }}
{{ delimit $authors ", " }} {{ delimit $authors ", " | safeHTML }}
{{ else }} {{ else }}
{{ delimit . ", " }} {{ delimit . ", " }}
{{ end }} {{ end }}

View File

@ -6,6 +6,6 @@
<div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}"> <div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
{{ partial "icon.html" "folder" }} {{ partial "icon.html" "folder" }}
{{ delimit $categories ", " }} {{ delimit $categories ", " | safeHTML }}
</div> </div>
{{ end }} {{ end }}

View File

@ -6,6 +6,6 @@
<div class="page-metadata-section series" aria-label="{{ i18n "aria_post_meta_series" }}"> <div class="page-metadata-section series" aria-label="{{ i18n "aria_post_meta_series" }}">
{{ partial "icon.html" "files" }} {{ partial "icon.html" "files" }}
{{ delimit $series ", " }} {{ delimit $series ", " | safeHTML }}
</div> </div>
{{ end }} {{ end }}

View File

@ -6,6 +6,6 @@
<div class="page-metadata-section tags" aria-label="{{ i18n "aria_post_meta_tags" }}"> <div class="page-metadata-section tags" aria-label="{{ i18n "aria_post_meta_tags" }}">
{{ partial "icon.html" "tag" }} {{ partial "icon.html" "tag" }}
{{ delimit $tags ", " }} {{ delimit $tags ", " | safeHTML }}
</div> </div>
{{ end }} {{ end }}

View File

@ -12,6 +12,6 @@
This post is part of a series: This post is part of a series:
{{ end }} {{ end }}
{{ delimit $series ", " }} {{ delimit $series ", " | safeHTML }}
</div> </div>
{{ end }} {{ end }}