diff options
Diffstat (limited to 'layouts/posts/single.html')
-rw-r--r-- | layouts/posts/single.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 8abe5d4..e6470ed 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -236,6 +236,11 @@ {{- end -}} {{- end -}} + {{ if and (eq ($params.Page.hiddenAuthor | default .Site.Params.Page.hiddenAuthor | default false) false) (eq ($params.Page.authorFooter | default .Site.Params.Page.authorFooter | default true) false) (ne $pageTheme "hero") }} + {{- $authorName := $params.author | default .Site.Author.name | default " " -}} + {{- partial "block/author.html" $authorName -}} + {{ end }} + {{- /* Static TOC */ -}} {{- if ne $toc.enable false -}} <div class="details toc" id="toc-static" data-kept="{{ if $toc.keepStatic }}true{{ end }}"> @@ -271,7 +276,7 @@ </div> - {{- if not $params.hiddenFooter -}} + {{- if not $params.Page.hiddenFooter -}} <footer> <div class="post"> {{- /* Footer Post */ -}} @@ -288,7 +293,7 @@ </article> {{ end }} - {{- if not $params.hiddenUnderPost -}} + {{- if not $params.Page.hiddenUnderPost -}} {{- partial "under-post.html" . -}} {{- end -}} |