Skip to content

Commit

Permalink
Doc add a missing arg to get_taxonomy_url (#1139)
Browse files Browse the repository at this point in the history
This feature is already exist, but not in the doc yet

Related #766
  • Loading branch information
ken0x0a committed Aug 18, 2020
1 parent 261a2ee commit d198ad6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/content/documentation/templates/overview.md
Expand Up @@ -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.

```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,
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`
Gets the whole taxonomy of a specific kind.

Expand Down

0 comments on commit d198ad6

Please sign in to comment.