mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 05:15:58 -06:00
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:
parent
ede5958a46
commit
0f717e81c0
@ -6,9 +6,9 @@
|
||||
{{ $authors := slice }}
|
||||
{{ range . }}
|
||||
{{ $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 }}
|
||||
{{ delimit $authors ", " }}
|
||||
{{ delimit $authors ", " | safeHTML }}
|
||||
{{ else }}
|
||||
{{ delimit . ", " }}
|
||||
{{ end }}
|
||||
|
@ -6,6 +6,6 @@
|
||||
|
||||
<div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
|
||||
{{ partial "icon.html" "folder" }}
|
||||
{{ delimit $categories ", " }}
|
||||
{{ delimit $categories ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -6,6 +6,6 @@
|
||||
|
||||
<div class="page-metadata-section series" aria-label="{{ i18n "aria_post_meta_series" }}">
|
||||
{{ partial "icon.html" "files" }}
|
||||
{{ delimit $series ", " }}
|
||||
{{ delimit $series ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -6,6 +6,6 @@
|
||||
|
||||
<div class="page-metadata-section tags" aria-label="{{ i18n "aria_post_meta_tags" }}">
|
||||
{{ partial "icon.html" "tag" }}
|
||||
{{ delimit $tags ", " }}
|
||||
{{ delimit $tags ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -12,6 +12,6 @@
|
||||
This post is part of a series:
|
||||
{{ end }}
|
||||
|
||||
{{ delimit $series ", " }}
|
||||
{{ delimit $series ", " | safeHTML }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user