浏览代码

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 8 年前
父节点
当前提交
6404f691fa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      layouts/partials/sidebar.html

+ 1
- 1
layouts/partials/sidebar.html 查看文件

14
       {{end}}
14
       {{end}}
15
     </ul>
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
   </div>
18
   </div>
19
 </div>
19
 </div>