diff options
author | Ghyslain Leclerc <ghleclerc@gmail.com> | 2017-10-12 21:57:29 +0300 |
---|---|---|
committer | Ghyslain Leclerc <ghleclerc@gmail.com> | 2017-10-12 21:57:29 +0300 |
commit | 8c82a5acd147f85dba725abdbaf2f29cc8c3685c (patch) | |
tree | ff41dd02770090d4f60a2ff1782e88b428273303 | |
parent | 8708fdbe0d6217a4001b4df1f441fdf3f60350c9 (diff) |
Using the new now function instead of Now on Page object.
The Page object will be deprecated in the next Hugo version (version 0.30), so
this silences a warning which will become an error in the next version.
-rw-r--r-- | layouts/partials/page_footer.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/page_footer.html b/layouts/partials/page_footer.html index 19a39b5..6a191c6 100644 --- a/layouts/partials/page_footer.html +++ b/layouts/partials/page_footer.html @@ -17,7 +17,7 @@ {{ if .Site.Params.showcopyright }} <div class="footer_copyright"> - © {{ .Now.Format "2006" }} <a href="{{ .Site.Author.aboutpage }}">{{ .Site.Author.firstname }} {{ .Site.Author.lastname }}</a> + © {{ now.Format "2006" }} <a href="{{ .Site.Author.aboutpage }}">{{ .Site.Author.firstname }} {{ .Site.Author.lastname }}</a> {{ with .Site.Author.location }} - Made in {{ . }}{{ end }} </div> {{ end }} |