From: Jeff Ramnani Date: Fri, 22 May 2015 17:06:18 +0000 (-0500) Subject: Docs: Add taxonomy term variables to the list of vars. X-Git-Tag: v0.14~21 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0d65ca27;p=brevno-suite%2Fhugo 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 --- diff --git a/docs/content/templates/variables.md b/docs/content/templates/variables.md index 8ff46fe9..3b8660d3 100644 --- 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.
**.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: