From: Oliver Schneider Date: Sat, 25 Mar 2017 11:09:32 +0000 (+0100) Subject: Replacing deprecated function call with now preferred version (#39) X-Git-Url: https://njoseph.me/gitweb/hyde.git/commitdiff_plain/6404f691fa0969a149340a5a1c650e9a282fd547 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). --- 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}} -

{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{.Now.Format "2006"}}. All rights reserved. {{end}}

+

{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}}. All rights reserved. {{end}}