mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Adding .Summary to page variables
This commit is contained in:
parent
3ab5245049
commit
16a2e4200b
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ are available in the context for the templates.
|
||||||
**.Next** Pointer to the following content (based on pub date)<br>
|
**.Next** Pointer to the following content (based on pub date)<br>
|
||||||
**.Site** See site variables below<br>
|
**.Site** See site variables below<br>
|
||||||
**.Content** The content itself, defined below the front matter.<br>
|
**.Content** The content itself, defined below the front matter.<br>
|
||||||
|
**.Summary** A generated summary of the content for easily showing a snippet in a summary view.<br>
|
||||||
|
|
||||||
Any value defined in the front matter, including indexes will be made available under `.Params`.
|
Any value defined in the front matter, including indexes will be made available under `.Params`.
|
||||||
Take for example I'm using tags and categories as my indexes. The following would be how I would access them:
|
Take for example I'm using tags and categories as my indexes. The following would be how I would access them:
|
||||||
|
|
Loading…
Reference in a new issue