From d198ad64dbcdb781b946991055ed8f591cadfba9 Mon Sep 17 00:00:00 2001 From: Ken <2770219+ken0x0a@users.noreply.github.com> Date: Tue, 18 Aug 2020 20:06:49 +0900 Subject: [PATCH] Doc add a missing arg to `get_taxonomy_url` (#1139) This feature is already exist, but not in the doc yet Related #766 --- docs/content/documentation/templates/overview.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/documentation/templates/overview.md b/docs/content/documentation/templates/overview.md index 4a0d6f2d2..8921c213e 100644 --- a/docs/content/documentation/templates/overview.md +++ b/docs/content/documentation/templates/overview.md @@ -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.