From 01597adfd242a2339845765d7c38106a89fdc7d9 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Wed, 25 Mar 2020 20:05:08 +0100 Subject: [PATCH] Pass lang to taxonomy list template Closes #963 --- CHANGELOG.md | 1 + components/library/src/taxonomies/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 136edd38..163f13c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 0.10.2 (unreleased) - Fix link checker not looking for anchor with capital id/name +- Pass missing `lang` template parameter to taxonomy list template ## 0.10.1 (2020-03-12) diff --git a/components/library/src/taxonomies/mod.rs b/components/library/src/taxonomies/mod.rs index 036f4b9b..97be410a 100644 --- a/components/library/src/taxonomies/mod.rs +++ b/components/library/src/taxonomies/mod.rs @@ -169,6 +169,7 @@ impl Taxonomy { let terms: Vec = self.items.iter().map(|i| SerializedTaxonomyItem::from_item(i, library)).collect(); context.insert("terms", &terms); + context.insert("lang", &self.kind.lang); context.insert("taxonomy", &self.kind); context.insert("current_url", &config.make_permalink(&self.kind.name)); context.insert("current_path", &self.kind.name);