mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 12:25:04 -04:00
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:
parent
099f46ca5c
commit
999b752016
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user