feat(wiki): add Aliases to Entry and read from YAML frontmatter
This commit is contained in:
@@ -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(), "-")
|
||||
|
||||
Reference in New Issue
Block a user