feat(wiki): add Aliases to Entry and read from YAML frontmatter

This commit is contained in:
Mathias Bergqvist
2026-04-23 15:57:16 +02:00
parent 9cc6c2d053
commit bf6f497d9d
4 changed files with 58 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ func Slug(title string) string {
case unicode.IsLetter(r) || unicode.IsDigit(r):
b.WriteRune(r)
prevHyphen = false
// all other characters (apostrophes, colons, dots, etc.) are dropped
// all other characters (apostrophes, colons, dots, etc.) are dropped
}
}
return strings.TrimRight(b.String(), "-")