Parcourir la source

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).
Oliver Schneider il y a 7 ans
Parent
révision
6404f691fa
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      layouts/partials/sidebar.html

+ 1
- 1
layouts/partials/sidebar.html Voir le fichier

@@ -14,6 +14,6 @@
14 14
       {{end}}
15 15
     </ul>
16 16
 
17
-    <p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{.Now.Format "2006"}}. All rights reserved. {{end}}</p>
17
+    <p>{{ with .Site.Params.copyright }}{{.}}{{ else }}&copy; {{ now.Format "2006"}}. All rights reserved. {{end}}</p>
18 18
   </div>
19 19
 </div>