mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Docs: Add taxonomy term variables to the list of vars.
Taxonomy Term pages have variables in addition to those on "node" pages. Documenting these variables with all the other node variables makes them easier to find. Fixes: #1155
This commit is contained in:
parent
7125103b1e
commit
0d65ca27fd
1 changed files with 12 additions and 0 deletions
|
@ -82,6 +82,18 @@ includes taxonomies, lists and the homepage.
|
|||
**.Site** See [Site Variables]({{< relref "#site-variables" >}}) below.<br>
|
||||
**.Hugo** See [Hugo Variables]({{< relref "#hugo-variables" >}}) below.<br>
|
||||
|
||||
### Taxonomy Term Variables
|
||||
|
||||
[Taxonomy Terms](/templates/terms/) pages are of the type "node" and have the following additional variables.
|
||||
|
||||
* **.Data.Singular** The singular name of the taxonomy
|
||||
* **.Data.Plural** The plural name of the taxonomy
|
||||
* **.Data.Terms** The taxonomy itself
|
||||
* **.Data.Terms.Alphabetical** The Terms alphabetized
|
||||
* **.Data.Terms.ByCount** The Terms ordered by popularity
|
||||
|
||||
The last two can also be reversed: **.Data.Terms.Alphabetical.Reverse**, **.Data.Terms.ByCount.Reverse**.
|
||||
|
||||
## Site Variables
|
||||
|
||||
Also available is `.Site` which has the following:
|
||||
|
|
Loading…
Reference in a new issue