Document front matter date field aliases

This commit is contained in:
Joe Mooring 2024-10-04 16:05:18 -07:00 committed by GitHub
parent a39951847d
commit e19fb80431
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,6 +171,10 @@ lang
[menus]: /content-management/menus/#define-in-front-matter [menus]: /content-management/menus/#define-in-front-matter
###### modified
Alias to [lastmod](#lastmod).
###### outputs ###### outputs
(`string array`) The [output formats] to render. (`string array`) The [output formats] to render.
@ -191,12 +195,20 @@ path
[page parameters]: #parameters [page parameters]: #parameters
###### pubdate
Alias to [publishDate](#publishdate).
###### publishDate ###### publishDate
(`string`) The page publication date. Before the publication date, the page will not be rendered unless you pass the `--buildFuture` flag to the `hugo` command. Note that the TOML format also supports date/time values using unquoted strings. Access this value from a template using the [`PublishDate`] method on a `Page` object. (`string`) The page publication date. Before the publication date, the page will not be rendered unless you pass the `--buildFuture` flag to the `hugo` command. Note that the TOML format also supports date/time values using unquoted strings. Access this value from a template using the [`PublishDate`] method on a `Page` object.
[`publishdate`]: /methods/page/publishdate/ [`publishdate`]: /methods/page/publishdate/
###### published
Alias to [publishDate](#publishdate).
###### resources ###### resources
(`map array`) An array of maps to provide metadata for [page resources]. (`map array`) An array of maps to provide metadata for [page resources].
@ -242,6 +254,10 @@ path
[content type]: /getting-started/glossary/#content-type [content type]: /getting-started/glossary/#content-type
[`type`]: /methods/page/type/ [`type`]: /methods/page/type/
###### unpublishdate
Alias to [expirydate](#expirydate).
###### url ###### url
(`string`) Overrides the entire URL path. Applicable to regular pages and section pages. See the [URL management] page for details. (`string`) Overrides the entire URL path. Applicable to regular pages and section pages. See the [URL management] page for details.