diff --git a/CHANGELOG.md b/CHANGELOG.md index db1bdde..9497be4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/components/site/src/lib.rs b/components/site/src/lib.rs index 9f436e0..a088d7a 100644 --- a/components/site/src/lib.rs +++ b/components/site/src/lib.rs @@ -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); }