From 9b3877b88c71f455e11d4acbf4682f73fba8a59c Mon Sep 17 00:00:00 2001 From: Jeff Ramnani Date: Fri, 22 May 2015 12:06:18 -0500 Subject: [PATCH] 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 --- content/templates/variables.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/templates/variables.md b/content/templates/variables.md index 8ff46fe9e..3b8660d32 100644 --- a/content/templates/variables.md +++ b/content/templates/variables.md @@ -82,6 +82,18 @@ includes taxonomies, lists and the homepage. **.Site** See [Site Variables]({{< relref "#site-variables" >}}) below.
**.Hugo** See [Hugo Variables]({{< relref "#hugo-variables" >}}) below.
+### 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: