]> njoseph.me Git - hyde.git/commitdiff
Replacing deprecated function call with now preferred version (#39)
authorOliver Schneider <olsio@users.noreply.github.com>
Sat, 25 Mar 2017 11:09:32 +0000 (12:09 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 25 Mar 2017 11:09:32 +0000 (12:09 +0100)
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).

layouts/partials/sidebar.html

index 4bdc33e84d2f833c688ad74f007d4b36de6690d3..48fec6aab1bda505c6eb2bfe87f0cc1826c843d3 100644 (file)
@@ -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>