mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-11 01:31:37 -05:00
Use individual <a> for each tag/category/etc in post metadata
Fixes #85
This commit is contained in:
@@ -1,16 +1,9 @@
|
||||
{{ with .Params.authors }}
|
||||
<span class="page-metadata-item" data-pagefind-meta="authors" aria-label="{{ i18n "aria_post_meta_authors" }}">
|
||||
{{ with .GetTerms "authors" }}
|
||||
<span class="page-metadata-item authors" 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 . ", " }}
|
||||
{{ range . }}
|
||||
<a href="{{ .Permalink }}" data-pagefind-filter="author">{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
Reference in New Issue
Block a user