From 9ed90b708ade1ba661681418954bf670e98f424a Mon Sep 17 00:00:00 2001 From: Ryan Watters Date: Fri, 14 Apr 2017 14:54:15 -0500 Subject: [PATCH] Add more in-page references to date-related page vars Closes rdwatters/hugo-docs-concept#86 --- content/variables/page.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/variables/page.md b/content/variables/page.md index 7f6be1337..d6a701450 100644 --- a/content/variables/page.md +++ b/content/variables/page.md @@ -36,7 +36,7 @@ See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables. : the data specific to this type of page. `.Date` -: the date associated with the page. +: the date associated with the page; `.Date` pulls from the `date` field in a content's front matter. See also `.ExpiryDate`, `.PublishDate`, and `.Lastmod`. `.Description` : the description for the page. @@ -45,7 +45,7 @@ See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables. : a boolean, `true` if the content is marked as a draft in the front matter. `.ExpiryDate` -: the date on which the content is scheduled to expire. +: the date on which the content is scheduled to expire; `.ExpiryDate` pulls from the `expirydate` field in a content's front matter. See also `.PublishDate`, `.Date`, and `.Lastmod`. `.FuzzyWordCount` : the approximate number of words in the content. @@ -79,16 +79,16 @@ See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables. `config`. `.Lastmod` -: the date the content was last modified (i.e. from `lastmod` in the content's front matter) +: the date the content was last modified; `.Lastmod` pulls from the `lastmod` field in a content's front matter. If `lastmod` is not set, Hugo will default to the `date` field. See also `.ExpiryDate`, `.Date`, and `.PublishDate`. `.LinkTitle` : access when creating links to the content. If set, Hugo will use the `linktitle` from the front matter before `title`. `.Next` -: pointer to the following content (based on `publishdate` in front matter). +: pointer to the following content (based on the `publishdate` field in front matter). `.NextInSection` -: pointer to the following content within the same section (based on `publishdate` in front matter). +: pointer to the following content within the same section (based on `publishdate` field in front matter). `.OutputFormats` : contains all formats, including the current format, for a given page. Can be combined the with [`.Get` function](/functions/get/) to grab a specific format. (See [Output Formats](/templates/output-formats/).) @@ -112,7 +112,7 @@ See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables. : Pointer to the previous content within the same section (based on `publishdate` in front matter). For example, `{{if .PrevInSection}}{{.PrevInSection.Permalink}}{{end}}`. `.PublishDate` -: the date on which the content was or will be published. +: the date on which the content was or will be published; `.Publishdate` pulls from the `publishdate` field in a content's front matter. See also `.ExpiryDate`, `.Date`, and `.Lastmod`. `.RSSLink` : link to the taxonomies' RSS link.