mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 21:25:59 -06:00
BBaoVanC
0f717e81c0
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
17 lines
611 B
HTML
17 lines
611 B
HTML
{{ with .Params.authors }}
|
|
<span class="page-metadata-item" aria-label="{{ i18n "aria_post_meta_authors" }}">
|
|
{{ partial "icon.html" "user-circle" }}
|
|
|
|
{{ if index $.Site.Taxonomies "authors" }}
|
|
{{ $authors := slice }}
|
|
{{ range . }}
|
|
{{ $url := (printf "authors/%s" (. | anchorize)) | absLangURL }}
|
|
{{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url .) }}
|
|
{{ end }}
|
|
{{ delimit $authors ", " | safeHTML }}
|
|
{{ else }}
|
|
{{ delimit . ", " }}
|
|
{{ end }}
|
|
</span>
|
|
{{ end }}
|