Add better series taxonomy list and clean up post metadata

This commit is contained in:
2021-11-13 17:04:10 -06:00
parent 21180991c0
commit 96893d7de6
11 changed files with 172 additions and 81 deletions

View File

@ -0,0 +1,19 @@
{{ with .Params.authors }}
<span class="post-meta-item">
{{ 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 . | safeHTML) }}
{{ end }}
{{ delimit $authors ", " }}
{{ else }}
{{ delimit . ", " }}
{{ end }}
</span>
{{ end }}