Docs: Add taxonomy term variables to the list of vars. - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 0d65ca27fd2c3370c83e5e243bf4c0879aefd920
DIR parent 7125103b1e7fedfe29516cee9ea70ef22d65aca7
HTML Author: Jeff Ramnani <jeff@jefframnani.com>
Date: Fri, 22 May 2015 12:06:18 -0500
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
Diffstat:
M docs/content/templates/variables.md | 12 ++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)
---
DIR diff --git a/docs/content/templates/variables.md b/docs/content/templates/variables.md
@@ -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: