Skip to content

Commit

Permalink
fix directory index not having a newline
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Brue <[email protected]>
  • Loading branch information
ryanabx committed Dec 19, 2024
1 parent a7026cd commit ffe6448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<https://github.com/ryanabx/simple-ssg>

[Command Reference](./command_reference)
[Command Reference](./command_reference.md)

## A simple static site generator for Djot/Markdown!

Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ffe6448

Please sign in to comment.