From ffe6448f45d89bc613ed43a29325ca37bf330c41 Mon Sep 17 00:00:00 2001 From: Ryan Brue Date: Thu, 19 Dec 2024 14:04:30 -0600 Subject: [PATCH] fix directory index not having a newline Signed-off-by: Ryan Brue --- docs/index.md | 2 +- src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 2989978..81766ba 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,7 +2,7 @@ -[Command Reference](./command_reference) +[Command Reference](./command_reference.md) ## A simple static site generator for Djot/Markdown! diff --git a/src/main.rs b/src/main.rs index 0e20229..1ed0540 100644 --- a/src/main.rs +++ b/src/main.rs @@ -158,7 +158,8 @@ fn generate_site_2( if x.depth() > 0 { // let parent_dir = x_path.parent().unwrap(); - directory_index.push_str("[../](..)\n"); + directory_index.push_str("[../](../index.html)\n"); + directory_index.push_str("\n"); } directory_index.push_str(&create_directory_index(x_path)?); log::info!("{}", &directory_index);