diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2020-08-20 13:59:58 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2020-08-20 13:59:58 +0300 |
commit | 16c77f14203e9b938bcb7e497c3f32682dbdbeaa (patch) | |
tree | 04c73ec9484af5f1664e54643182f4c98e904de9 | |
parent | 5605279eb695dccd1ad22ee1d1c741b0b913556b (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.html | 4 |
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" }} </span><time datetime="{{ .PublishDate }}">{{ i18n "publishdate" . }}</time> {{- end }} -</div>
\ No newline at end of file +</div> |