From 999b75201698ae6f6831d795fa0a8cb24637759d Mon Sep 17 00:00:00 2001 From: Bruce Date: Mon, 5 Mar 2018 21:54:44 -0600 Subject: [PATCH] LastMod should be Lastmod? Trying to use LastMod gives errors, however Lastmod works. So, I'd guess the documentation should be updated. --- 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 89d74c241..30be8212d 100644 --- a/content/functions/format.md +++ b/content/functions/format.md @@ -1,6 +1,6 @@ --- title: .Format -description: Formats built-in Hugo dates---`.Date`, `.PublishDate`, and `.LastMod`---according to Go's layout string. +description: Formats built-in Hugo dates---`.Date`, `.PublishDate`, and `.Lastmod`---according to Go's layout string. godocref: https://golang.org/pkg/time/#example_Time_Format date: 2017-02-01 publishdate: 2017-02-01 @@ -23,7 +23,7 @@ toc: true * `.PublishDate` * `.Date` -* `.LastMod` +* `.Lastmod` Assuming a key-value of `date: 2017-03-03` in a content file's front matter, your can run the date through `.Format` followed by a layout string for your desired output at build time: