Doc add a missing arg to get_taxonomy_url
(#1139)
This feature is already exist, but not in the doc yet Related #766
This commit is contained in:
parent
261a2eee01
commit
d198ad64db
|
@ -158,12 +158,14 @@ Gets metadata for an image. Currently, the only supported keys are `width` and
|
||||||
Gets the permalink for the taxonomy item found.
|
Gets the permalink for the taxonomy item found.
|
||||||
|
|
||||||
```jinja2
|
```jinja2
|
||||||
{% set url = get_taxonomy_url(kind="categories", name=page.taxonomies.category) %}
|
{% set url = get_taxonomy_url(kind="categories", name=page.taxonomies.category, lang=page.lang) %}
|
||||||
```
|
```
|
||||||
|
|
||||||
`name` will almost always come from a variable but in case you want to do it manually,
|
`name` will almost always come from a variable but in case you want to do it manually,
|
||||||
the value should be the same as the one in the front matter, not the slugified version.
|
the value should be the same as the one in the front matter, not the slugified version.
|
||||||
|
|
||||||
|
`lang` (optional) default to `config.default_language` in config.toml
|
||||||
|
|
||||||
### `get_taxonomy`
|
### `get_taxonomy`
|
||||||
Gets the whole taxonomy of a specific kind.
|
Gets the whole taxonomy of a specific kind.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue