LastMod should be Lastmod?

Trying to use LastMod gives errors, however Lastmod works.  So, I'd guess the documentation should be updated.
This commit is contained in:
Bruce 2018-03-05 21:54:44 -06:00 committed by Kaushal Modi
parent 099f46ca5c
commit 999b752016

View File

@ -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: