ref: 5611631539cdff75ce849b85f0f324e831e2e8a5
parent: c21b1558aebfe36ce03bf105da5a131b231627c0
author: Roy Reveltas <[email protected]>
date: Wed May 18 04:43:30 EDT 2016
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
--- a/docs/content/templates/variables.md
+++ b/docs/content/templates/variables.md
@@ -44,7 +44,7 @@
**.TableOfContents** The rendered table of contents for this content.<br>
**.Prev** Pointer to the previous 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>
**.FuzzyWordCount** The approximate number of words in the content.<br>
**.WordCount** The number of words in the content.<br>