Fix "next" navigation on index.html. (#916)

This commit is contained in:
Eric Huss 2019-05-07 15:27:48 -07:00 committed by Dylan DPC
parent 7ab939f8f2
commit a674c9eff1
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ impl HtmlHandlebars {
utils::fs::write_file(&ctx.destination, &filepath, rendered.as_bytes())?;
if ctx.is_index {
ctx.data.insert("path".to_owned(), json!("index.html"));
ctx.data.insert("path".to_owned(), json!("index.md"));
ctx.data.insert("path_to_root".to_owned(), json!(""));
let rendered_index = ctx.handlebars.render("index", &ctx.data)?;
let rendered_index = self.post_process(rendered_index, &ctx.html_config.playpen);