diff options
Diffstat (limited to 'layouts/partials/metadata.html')
-rw-r--r-- | layouts/partials/metadata.html | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index b2136bc..28dc5b4 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,9 +1,19 @@ {{ $dateTime := .PublishDate.Format "2006-01-02" }} {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }} <div class="f6 lh-copy mv0 ph4 pv2"> - By - {{ with .Params.author }} - <span class="author"> — {{ delimit . ", " }} </span> + By — + {{ range .Params.authors }} + {{ $name := . }} + {{ $path := printf "/%s/%s" "authors" ( $name | urlize ) }} + {{ with $.GetPage $path }} + {{ if isset .Params "name" }} + <a class="link underline color-inherit" href="{{ .RelPermalink }}"> + {{- default $name .Params.name -}} + </a> + {{ else }} + {{ $name }} + {{ end }} + {{ end }} {{ end }} |