Browse Source

Fix generated index section not found in get_section

index-subcmd
Vincent Prouillet 7 years ago
parent
commit
d4779aa2ed
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -0
      components/site/src/lib.rs

+ 1
- 0
CHANGELOG.md View File

@@ -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




+ 1
- 0
components/site/src/lib.rs View File

@@ -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…
Cancel
Save