From 0882a21997b0830f43643cac9f0de4beaa698988 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 29 Sep 2024 15:54:01 +0200 Subject: Rework author configuration --- layouts/_default/single.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'layouts/_default/single.html') 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 @@

{{ 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 ""))}} + {{ i18n "by" . }} + {{ end }} {{ else }} {{ partial "post-meta/date.html" . }} {{ end }} -- cgit v1.2.3