aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Nicolas Veigel <art.jnveigel@gmail.com>2024-03-14 05:40:01 +0100
committerLouis Pilfold <louis@lpil.uk>2024-03-26 10:31:25 +0000
commit352b02644760afb8d23aa79c9194cc8b0eb9ef06 (patch)
tree1e261a650ae47750ca954f0c72010b180b7dbeb0
parent6b909eea3db887214fdd13dffb1dda48ddc7e420 (diff)
downloadtour-352b02644760afb8d23aa79c9194cc8b0eb9ef06.tar.gz
tour-352b02644760afb8d23aa79c9194cc8b0eb9ef06.zip
chore: remove starting hyphen in lesson ids
-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) {