Fix generated index section not found in get_section

This commit is contained in:
Vincent Prouillet 2017-10-24 20:32:46 +02:00
parent 404240ef82
commit d4779aa2ed
2 changed files with 2 additions and 0 deletions

View file

@ -5,6 +5,7 @@
- Fix shortcodes without arguments being ignored - Fix shortcodes without arguments being ignored
- Fix shortcodes with markdown chars (_, *, etc) in name and args being ignored - Fix shortcodes with markdown chars (_, *, etc) in name and args being ignored
- Fix subsections of index not being filled without a `_index.md` - Fix subsections of index not being filled without a `_index.md`
- Fix generated index section not found in `get_section` global function
- Fix permalink generation for index page - Fix permalink generation for index page

View file

@ -208,6 +208,7 @@ impl Site {
let mut index_section = Section::default(); let mut index_section = Section::default();
index_section.permalink = self.config.make_permalink(""); index_section.permalink = self.config.make_permalink("");
index_section.file.parent = self.base_path.join("content"); index_section.file.parent = self.base_path.join("content");
index_section.file.relative = "_index.md".to_string();
self.sections.insert(index_path, index_section); self.sections.insert(index_path, index_section);
} }