Permalink
Browse files

shortcode-templates.md: Update year example

The example used a deprecated way to get the current year:
`Page's Now is deprecated and will be removed in Hugo 0.31. Use now (the template func).`
  • Loading branch information...
julienschmidt authored and digitalcraftsman committed Nov 1, 2017
1 parent 850d5ca commit 22038d1a8e9b1c4e04a48256cd6cf0b7888436be
Showing with 1 addition and 1 deletion.
  1. +1 −1 content/templates/shortcode-templates.md
@@ -150,7 +150,7 @@ Let's assume you would like to keep mentions of your copyright year current in y
```
{{< code file="/layouts/shortcodes/year.html" >}}
{{ .Page.Now.Year }}
{{ now.Format "2006" }}
{{< /code >}}
### Single Positional Example: `youtube`

0 comments on commit 22038d1

Please sign in to comment.