Consistent path for defult index section

Closes #995
This commit is contained in:
Vincent Prouillet 2020-05-23 11:41:50 +02:00
parent 32ca1a14ed
commit e1c8c01149
2 changed files with 158 additions and 239 deletions

396
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -477,6 +477,7 @@ impl Site {
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.path = "/".to_string();
}
index_section.lang = index_section.file.find_language(&self.config)?;
library.insert_section(index_section);