mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 00:16:45 +00:00
Add more in-page references to date-related page vars
Closes rdwatters/hugo-docs-concept#86
This commit is contained in:
1 parent
0fff8177db
commit
9ed90b708a
1 file changed
+6
-6
@@ -36,7 +36,7 @@ See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables.
|
|||||||
: the data specific to this type of page.
|
: the data specific to this type of page.
|
||||||
|
|
||||||
`.Date`
|
`.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`
|
`.Description`
|
||||||
: the description for the page.
|
: 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.
|
: a boolean, `true` if the content is marked as a draft in the front matter.
|
||||||
|
|
||||||
`.ExpiryDate`
|
`.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`
|
`.FuzzyWordCount`
|
||||||
: the approximate number of words in the content.
|
: the approximate number of words in the content.
|
||||||
@@ -79,16 +79,16 @@ See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables.
|
|||||||
`config`.
|
`config`.
|
||||||
|
|
||||||
`.Lastmod`
|
`.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`
|
`.LinkTitle`
|
||||||
: access when creating links to the content. If set, Hugo will use the `linktitle` from the front matter before `title`.
|
: access when creating links to the content. If set, Hugo will use the `linktitle` from the front matter before `title`.
|
||||||
|
|
||||||
`.Next`
|
`.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`
|
`.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`
|
`.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/).)
|
: 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}}`.
|
: Pointer to the previous content within the same section (based on `publishdate` in front matter). For example, `{{if .PrevInSection}}{{.PrevInSection.Permalink}}{{end}}`.
|
||||||
|
|
||||||
`.PublishDate`
|
`.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`
|
`.RSSLink`
|
||||||
: link to the taxonomies' RSS link.
|
: link to the taxonomies' RSS link.
|
||||||
|
|||||||
Reference in new issue
Block a user