Skip to content

Commit a674c9e

Browse files
ehussDylan-DPC
authored andcommitted
Fix "next" navigation on index.html. (#916)
1 parent 7ab939f commit a674c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/html_handlebars/hbs_renderer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl HtmlHandlebars {
8686
utils::fs::write_file(&ctx.destination, &filepath, rendered.as_bytes())?;
8787

8888
if ctx.is_index {
89-
ctx.data.insert("path".to_owned(), json!("index.html"));
89+
ctx.data.insert("path".to_owned(), json!("index.md"));
9090
ctx.data.insert("path_to_root".to_owned(), json!(""));
9191
let rendered_index = ctx.handlebars.render("index", &ctx.data)?;
9292
let rendered_index = self.post_process(rendered_index, &ctx.html_config.playpen);

0 commit comments

Comments
 (0)