Ensure homepages get their translations filled
This commit is contained in:
parent
39cf436b11
commit
3fa855267e
@ -31,6 +31,7 @@ any pages related to that taxonomy
|
|||||||
- Add `title_bytes` sorting method
|
- Add `title_bytes` sorting method
|
||||||
- Add `insert_anchor = "heading"`, which allows users to use the entire heading as a link
|
- Add `insert_anchor = "heading"`, which allows users to use the entire heading as a link
|
||||||
- Apply orientation transformation based on EXIF data
|
- Apply orientation transformation based on EXIF data
|
||||||
|
- Fix generated homepages not having their `translations` filled properly
|
||||||
|
|
||||||
## 0.15.3 (2022-01-23)
|
## 0.15.3 (2022-01-23)
|
||||||
|
|
||||||
|
@ -365,11 +365,13 @@ impl Site {
|
|||||||
let filename = format!("_index.{}.md", l);
|
let filename = format!("_index.{}.md", l);
|
||||||
index_section.file.path = self.content_path.join(&filename);
|
index_section.file.path = self.content_path.join(&filename);
|
||||||
index_section.file.relative = filename;
|
index_section.file.relative = filename;
|
||||||
|
index_section.file.canonical = self.content_path.join(format!("_index.{}", l));
|
||||||
} else {
|
} else {
|
||||||
index_section.file.name = "_index".to_string();
|
index_section.file.name = "_index".to_string();
|
||||||
index_section.permalink = self.config.make_permalink("");
|
index_section.permalink = self.config.make_permalink("");
|
||||||
index_section.file.path = self.content_path.join("_index.md");
|
index_section.file.path = self.content_path.join("_index.md");
|
||||||
index_section.file.relative = "_index.md".to_string();
|
index_section.file.relative = "_index.md".to_string();
|
||||||
|
index_section.file.canonical = self.content_path.join("_index");
|
||||||
index_section.path = "/".to_string();
|
index_section.path = "/".to_string();
|
||||||
}
|
}
|
||||||
index_section.lang = index_section.file.find_language(
|
index_section.lang = index_section.file.find_language(
|
||||||
|
Loading…
Reference in New Issue
Block a user