diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-28 21:27:00 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-28 21:27:00 +0300 |
commit | a4040547736578f6baf05b41b6a5ecd52ff2f77b (patch) | |
tree | 49aaf3d3f199791c0b00e0e3c3c0c57460a97f15 /layouts | |
parent | c9604bb1e372fdce9c9c4082ca59ae45254c649e (diff) |
Use .Site.Author.name in footer instead of .Site.Params.Author
Hugo provides an Author site variable that can be set in the site
configuration. Instead of setting the author variable in the params,
section from this commit on, you have to use the name variable in the
Author section. This adheres more to Hugo standards. See README.MD for
an example.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/footer.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 2cb6826..3fdfa4f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,5 @@ <footer> <span> - © <time datetime="{{ now }}">{{ now.Format "2006" }}</time> {{ .Site.Params.Author }}. {{ i18n "generator" | safeHTML }} + © <time datetime="{{ now }}">{{ now.Format "2006" }}</time> {{ .Site.Author.name }}. {{ i18n "generator" | safeHTML }} </span> </footer> |