mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 21:32:06 -05:00
docs: Add an example of how to use .PrevInSection
It's not a common knowledge what the "pointer" is so let's add an example of how to use .PrevInSection
This commit is contained in:
parent
c21b1558ae
commit
5611631539
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ matter, content or derived from file location.
|
||||||
**.TableOfContents** The rendered table of contents for this content.<br>
|
**.TableOfContents** The rendered table of contents for this content.<br>
|
||||||
**.Prev** Pointer to the previous content (based on pub date).<br>
|
**.Prev** Pointer to the previous content (based on pub date).<br>
|
||||||
**.Next** Pointer to the following content (based on pub date).<br>
|
**.Next** Pointer to the following content (based on pub date).<br>
|
||||||
**.PrevInSection** Pointer to the previous content within the same section (based on pub date)<br>
|
**.PrevInSection** Pointer to the previous content within the same section (based on pub date). For example, `{{if .PrevInSection}}{{.PrevInSection.Permalink}}{{end}}`.<br>
|
||||||
**.NextInSection** Pointer to the following content within the same section (based on pub date)<br>
|
**.NextInSection** Pointer to the following content within the same section (based on pub date)<br>
|
||||||
**.FuzzyWordCount** The approximate number of words in the content.<br>
|
**.FuzzyWordCount** The approximate number of words in the content.<br>
|
||||||
**.WordCount** The number of words in the content.<br>
|
**.WordCount** The number of words in the content.<br>
|
||||||
|
|
Loading…
Reference in a new issue