about summary refs log tree commit diff stats
path: root/layouts
diff options
context:
space:
mode:
authorOliver Schneider2017-03-25 12:09:32 +0100
committerBjørn Erik Pedersen2017-03-25 12:09:32 +0100
commit6404f691fa0969a149340a5a1c650e9a282fd547 (patch)
tree60aead44b75bba5fa7917ae87c2de968b72d0807 /layouts
parentd34cfef927da50d8f57682d092f8a1e7c155b5ce (diff)
downloadhyde-6404f691fa0969a149340a5a1c650e9a282fd547.tar.lz
hyde-6404f691fa0969a149340a5a1c650e9a282fd547.tar.zst
hyde-6404f691fa0969a149340a5a1c650e9a282fd547.zip
Replacing deprecated function call with now preferred version (#39)
Using the old call was producing the following Warning:

WARNING: Page's Now is deprecated and will be removed in a future
release. Use now (the template func).
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/sidebar.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 4bdc33e..48fec6a 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -14,6 +14,6 @@
       {{end}}
     </ul>
 
-    <p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{.Now.Format "2006"}}. All rights reserved. {{end}}</p>
+    <p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{ now.Format "2006"}}. All rights reserved. {{end}}</p>
   </div>
 </div>