diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 29f2dd0..a04e456 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -22,7 +22,9 @@ {{ if or .Params.author .Params.date }} <p class="text-muted text-uppercase mb-small text-right"> - {{ if .Params.author }}{{ i18n "authorBy" }} <a href="#">{{ .Params.author }}</a>{{ end }} + {{ if isset .Params "authors" }} + {{ i18n "authorBy" }} {{ range $index, $author := .Params.authors }}{{ if $index }}, {{ end }}<a href="{{ (printf "%s/%s" ("authors" | relURL) ($author | urlize)) }}">{{ $author }}</a>{{ end }} + {{ end }} {{ if and .Params.author .Params.date }} | {{ end }} {{ if .Params.date }}{{ .Date.Format .Site.Params.date_format }}{{ end }} </p> |