mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
Go back to lowercase slugs. Also, use MakePathToLower in TestMakeToLower.
go fmt
This commit is contained in:
@@ -40,7 +40,7 @@ func MakePath(s string) string {
|
||||
// and transformed to lower case.
|
||||
// E.g. Social Media -> social-media
|
||||
func MakePathToLower(s string) string {
|
||||
return UnicodeSanitize(strings.ToLower(strings.Replace(strings.TrimSpace(s), " ", "-", -1)))
|
||||
return UnicodeSanitize(strings.ToLower(strings.Replace(strings.TrimSpace(s), " ", "-", -1)))
|
||||
}
|
||||
|
||||
func MakeTitle(inpath string) string {
|
||||
|
Reference in New Issue
Block a user