aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tour.gleam3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tour.gleam b/src/tour.gleam
index 061c191..d18f927 100644
--- a/src/tour.gleam
+++ b/src/tour.gleam
@@ -516,7 +516,8 @@ fn file_error(
}
fn slugify_path(path: String) -> String {
- string.replace(path, "/", "")
+ string.replace(path, "/", "-")
+ |> string.drop_left(up_to: 1)
}
fn separator(class: String) {