From 352b02644760afb8d23aa79c9194cc8b0eb9ef06 Mon Sep 17 00:00:00 2001 From: Jean-Nicolas Veigel Date: Thu, 14 Mar 2024 05:40:01 +0100 Subject: chore: remove starting hyphen in lesson ids --- src/tour.gleam | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3