mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 08:18:30 +00:00
Fix page .Kind
In case of a taxonomy term page, `.Kind` (at least in Hugo v0.83) returns the string **`"term"`**, not `taxonomyTerm`.
This commit is contained in:
1 parent
9b39c77c87
commit
b81aedb03f
1 file changed
+1
-1
@@ -82,7 +82,7 @@ See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables.
|
|||||||
: the meta keywords for the content.
|
: the meta keywords for the content.
|
||||||
|
|
||||||
.Kind
|
.Kind
|
||||||
: the page's *kind*. Possible return values are `page`, `home`, `section`, `taxonomy`, or `taxonomyTerm`. Note that there are also `RSS`, `sitemap`, `robotsTXT`, and `404` kinds, but these are only available during the rendering of each of these respective page's kind and therefore *not* available in any of the `Pages` collections.
|
: the page's *kind*. Possible return values are `page`, `home`, `section`, `taxonomy`, or `term`. Note that there are also `RSS`, `sitemap`, `robotsTXT`, and `404` kinds, but these are only available during the rendering of each of these respective page's kind and therefore *not* available in any of the `Pages` collections.
|
||||||
|
|
||||||
.Language
|
.Language
|
||||||
: a language object that points to the language's definition in the site `config`. `.Language.Lang` gives you the language code.
|
: a language object that points to the language's definition in the site `config`. `.Language.Lang` gives you the language code.
|
||||||
|
|||||||
Reference in new issue
Block a user