From a674c9eff158d37048d5d70c0fe3b71f2c9800c2 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 7 May 2019 15:27:48 -0700 Subject: [PATCH] Fix "next" navigation on index.html. (#916) --- src/renderer/html_handlebars/hbs_renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index b77edc02bd..ab0d6b6f11 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -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);