Fix generated index section not found in get_section
This commit is contained in:
parent
404240ef82
commit
d4779aa2ed
|
@ -5,6 +5,7 @@
|
|||
- Fix shortcodes without arguments 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 generated index section not found in `get_section` global function
|
||||
- Fix permalink generation for index page
|
||||
|
||||
|
||||
|
|
|
@ -208,6 +208,7 @@ impl Site {
|
|||
let mut index_section = Section::default();
|
||||
index_section.permalink = self.config.make_permalink("");
|
||||
index_section.file.parent = self.base_path.join("content");
|
||||
index_section.file.relative = "_index.md".to_string();
|
||||
self.sections.insert(index_path, index_section);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue