Fix typo in Format function

This commit is contained in:
Ryan Watters 2017-04-18 19:46:18 -05:00
parent 4a2148e276
commit e97837f656

View File

@ -18,7 +18,7 @@ aliases: []
toc: true
---
`Format` will format date values defined in your front matter. `.Format` and can be used as a property on the following [page variables][pagevars]:
`Format` will format date values defined in your front matter and can be used as a property on the following [page variables][pagevars]:
* `.PublishDate`
* `.Date`
@ -30,7 +30,7 @@ Assuming a key-value of `date: 2017-03-03` in a content file's front matter, you
{{ .PublishDate.Format "January 2, 2006" }} => March 3, 2017
```
For formatting *any* string representations of dates defined in your front matter, see the [`dateFormat` function][dateFormat].
For formatting *any* string representations of dates defined in your front matter, see the [`dateFormat` function][dateFormat], which will still leverage the Golang layout string explained below but uses a slightly different syntax.
## Go's Layout String