From e97837f6560e824b84601b6bfa02ccef1ddf036b Mon Sep 17 00:00:00 2001 From: Ryan Watters Date: Tue, 18 Apr 2017 19:46:18 -0500 Subject: [PATCH] Fix typo in Format function --- content/functions/format.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/functions/format.md b/content/functions/format.md index b1de89f97..0cffd44cf 100644 --- a/content/functions/format.md +++ b/content/functions/format.md @@ -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