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

github.com/EmielH/tale-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Hollander <EmielH@users.noreply.github.com>2020-08-20 13:59:58 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2020-08-20 13:59:58 +0300
commit16c77f14203e9b938bcb7e497c3f32682dbdbeaa (patch)
tree04c73ec9484af5f1664e54643182f4c98e904de9
parent5605279eb695dccd1ad22ee1d1c741b0b913556b (diff)
Use .Site.Author.name in post info
The footer already used .Site.Author.name instead of .Site.Params.Author and now post info uses this variable as well. You can now safely delete .Site.Params.Author from your configuration. See #36
-rw-r--r--layouts/partials/single/post-info.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/single/post-info.html b/layouts/partials/single/post-info.html
index d4a4353..b5c8aa3 100644
--- a/layouts/partials/single/post-info.html
+++ b/layouts/partials/single/post-info.html
@@ -3,11 +3,11 @@
{{- if .Params.Author }}
{{ .Params.Author }}
{{- else }}
- {{ .Site.Params.Author }}
+ {{ .Site.Author.name }}
{{- end }}
{{- if .PublishDate }}
<br>
<span>{{ i18n "on" }}&nbsp;</span><time datetime="{{ .PublishDate }}">{{ i18n "publishdate" . }}</time>
{{- end }}
-</div> \ No newline at end of file
+</div>