cripslock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 77ab4348b048b9866ad1f284152545d8abcc7f2d
parent 96e356b8babb247a6d047e33504340115a00de77
Author: Daniel Barlow <dan@telent.net>
Date:   Sun, 20 Jul 2025 22:18:36 +0100

slugs are lowercase

Diffstat:
Mmain.fnl | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/main.fnl b/main.fnl @@ -95,7 +95,8 @@ (fn slug [title] (-> title (string.gsub "[^A-Za-z0-9]+" "_") - (string.gsub "_+$" ""))) + (string.gsub "_+$" "") + string.lower)) (fn index-posts [path] (collect [name (lfs.dir path)]