Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pravin/hugo-theme-prav.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiaopengli89 <x.friday@outlook.com>2020-05-20 15:29:16 +0300
committerxiaopengli89 <x.friday@outlook.com>2020-05-20 15:29:16 +0300
commitf87b655f0613de7352d61424effa91779ed90f74 (patch)
treef285ac1c75594ea74a78a03b3ccacf6abbf797b8
parent673becbfc658ba0a8848151fb34e9b8666eba49d (diff)
fix: .Params.author
-rw-r--r--layouts/partials/render_single_article.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/render_single_article.html b/layouts/partials/render_single_article.html
index 8fb738b..5f9a4cb 100644
--- a/layouts/partials/render_single_article.html
+++ b/layouts/partials/render_single_article.html
@@ -1,7 +1,7 @@
{{ if or (.Date) (ne .Params.Kind "page") }}
<div class="date">
<time pubdate="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time>
- <span class="author">by {{ .Author }}</span>
+ <span class="author">by {{ .Params.author }}</span>
</div>
{{ end }}
<article>