From e19fb804312cea3c81de0eeeb762b975512da1b7 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Fri, 4 Oct 2024 16:05:18 -0700 Subject: [PATCH] Document front matter date field aliases --- content/en/content-management/front-matter.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/content/en/content-management/front-matter.md b/content/en/content-management/front-matter.md index f2058991a..aeb771a19 100644 --- a/content/en/content-management/front-matter.md +++ b/content/en/content-management/front-matter.md @@ -171,6 +171,10 @@ lang [menus]: /content-management/menus/#define-in-front-matter +###### modified + +Alias to [lastmod](#lastmod). + ###### outputs (`string array`) The [output formats] to render. @@ -191,12 +195,20 @@ path [page parameters]: #parameters +###### pubdate + +Alias to [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. [`publishdate`]: /methods/page/publishdate/ +###### published + +Alias to [publishDate](#publishdate). + ###### 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 [`type`]: /methods/page/type/ +###### unpublishdate + +Alias to [expirydate](#expirydate). + ###### url (`string`) Overrides the entire URL path. Applicable to regular pages and section pages. See the [URL management] page for details.