mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
Go back to lowercase slugs. Also, use MakePathToLower in TestMakeToLower.
go fmt
This commit is contained in:
parent
5dd3eaabee
commit
1684579127
3 changed files with 10 additions and 7 deletions
|
@ -35,7 +35,7 @@ func SanitizeUrl(in string) string {
|
|||
// uri: Vim (text editor)
|
||||
// urlize: vim-text-editor
|
||||
func Urlize(uri string) string {
|
||||
sanitized := MakePath(uri)
|
||||
sanitized := MakePathToLower(uri)
|
||||
|
||||
// escape unicode letters
|
||||
parsedUri, err := url.Parse(sanitized)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue