summaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index fe33269..a061e89 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -7,7 +7,11 @@
</h1>
<p class="byline">
{{ if in (slice "drama" "narrative" "poem") $postType }}
- {{ partial "post-meta/author.html" . }}
+ {{ $showAuthor := .Site.Params.showAuthor | default false }}
+ {{ $author := partial "head/author.html" . }}
+ {{ if (and $showAuthor (ne $author ""))}}
+ <span class="author">{{ i18n "by" . }}</span>
+ {{ end }}
{{ else }}
{{ partial "post-meta/date.html" . }}
{{ end }}