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

github.com/jnjosh/internet-weblog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhyslain Leclerc <ghleclerc@gmail.com>2017-10-12 21:57:29 +0300
committerGhyslain Leclerc <ghleclerc@gmail.com>2017-10-12 21:57:29 +0300
commit8c82a5acd147f85dba725abdbaf2f29cc8c3685c (patch)
treeff41dd02770090d4f60a2ff1782e88b428273303
parent8708fdbe0d6217a4001b4df1f441fdf3f60350c9 (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.html2
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">
- &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 }}
</div>
{{ end }}