mirror of
https://github.com/getzola/zola
synced 2024-11-10 06:14:19 +00:00
Ensure homepages get their translations filled
This commit is contained in:
parent
39cf436b11
commit
3fa855267e
2 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,7 @@ any pages related to that taxonomy
|
|||
- Add `title_bytes` sorting method
|
||||
- Add `insert_anchor = "heading"`, which allows users to use the entire heading as a link
|
||||
- Apply orientation transformation based on EXIF data
|
||||
- Fix generated homepages not having their `translations` filled properly
|
||||
|
||||
## 0.15.3 (2022-01-23)
|
||||
|
||||
|
|
|
@ -365,11 +365,13 @@ impl Site {
|
|||
let filename = format!("_index.{}.md", l);
|
||||
index_section.file.path = self.content_path.join(&filename);
|
||||
index_section.file.relative = filename;
|
||||
index_section.file.canonical = self.content_path.join(format!("_index.{}", l));
|
||||
} else {
|
||||
index_section.file.name = "_index".to_string();
|
||||
index_section.permalink = self.config.make_permalink("");
|
||||
index_section.file.path = self.content_path.join("_index.md");
|
||||
index_section.file.relative = "_index.md".to_string();
|
||||
index_section.file.canonical = self.content_path.join("_index");
|
||||
index_section.path = "/".to_string();
|
||||
}
|
||||
index_section.lang = index_section.file.find_language(
|
||||
|
|
Loading…
Reference in a new issue