diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html index 48b56b8..b539638 100644 --- a/layouts/partials/post-metadata.html +++ b/layouts/partials/post-metadata.html @@ -27,7 +27,20 @@ {{ with .Params.authors }} {{ partial "icon.html" "user-circle" }} + + {{ if index $.Site.Taxonomies "authors" }} + + {{ $authors := slice }} + {{ range . }} + {{ $url := (printf "/authors/%s" (. | anchorize)) | absLangURL }} + {{ $authors = $authors | append (printf `%s` $url . | safeHTML) }} + {{ end }} + {{ delimit $authors ", " }} + + {{ else }} {{ delimit . ", " }} + + {{ end }} {{ end }}