Skip to content

Commit

Permalink
Pass lang to taxonomy list template
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Mar 25, 2020
1 parent 91bf91a commit 01597ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions components/library/src/taxonomies/mod.rs
Expand Up @@ -169,6 +169,7 @@ impl Taxonomy {
let terms: Vec<SerializedTaxonomyItem> =
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);
Expand Down

0 comments on commit 01597ad

Please sign in to comment.