mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 18:24:37 -04:00
Document front matter date field aliases
This commit is contained in:
parent
a39951847d
commit
e19fb80431
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user