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.
This commit is contained in:
Ghyslain Leclerc 2017-10-12 14:57:29 -04:00
parent 8708fdbe0d
commit 8c82a5acd1

View file

@ -17,7 +17,7 @@
{{ if .Site.Params.showcopyright }} {{ if .Site.Params.showcopyright }}
<div class="footer_copyright"> <div class="footer_copyright">
&copy; {{ .Now.Format "2006" }} <a href="{{ .Site.Author.aboutpage }}">{{ .Site.Author.firstname }} {{ .Site.Author.lastname }}</a> &copy; {{ now.Format "2006" }} <a href="{{ .Site.Author.aboutpage }}">{{ .Site.Author.firstname }} {{ .Site.Author.lastname }}</a>
{{ with .Site.Author.location }} - Made in {{ . }}{{ end }} {{ with .Site.Author.location }} - Made in {{ . }}{{ end }}
</div> </div>
{{ end }} {{ end }}