From d4779aa2ed9885a2398cd5859f2f46ab1e95e013 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Tue, 24 Oct 2017 20:32:46 +0200 Subject: [PATCH] Fix generated index section not found in get_section --- CHANGELOG.md | 1 + components/site/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index db1bddee..9497be48 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 9f436e0b..a088d7a3 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); }