website: redesign part 25

This commit is contained in:
nym21
2026-06-09 11:26:14 +02:00
parent b0b261fe9f
commit e54843291e
33 changed files with 1259 additions and 226 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
/** @param {string} value */
export function createId(value) {
return value.toLowerCase().replaceAll(" ", "-");
return value
.toLowerCase()
.replace(/[^a-z0-9]+/g, "-")
.replace(/^-|-$/g, "");
}