diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 49ea68b..a04e456 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,11 +7,7 @@ <div id="all"> - <header> - - {{ partial "nav.html" . }} - - </header> + {{ partial "nav.html" . }} {{ partial "breadcrumbs.html" . }} @@ -24,7 +20,15 @@ <div class="col-md-9" id="blog-post"> - <p class="text-muted text-uppercase mb-small text-right">{{ if .Params.author }}{{ i18n "authorBy" }} <a href="#">{{ .Params.author }}</a> | {{ end }}{{ .Date.Format .Site.Params.date_format }}</p> + {{ if or .Params.author .Params.date }} + <p class="text-muted text-uppercase mb-small text-right"> + {{ 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> + {{ end }} <div id="post-content"> {{ .Content }} |