mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-11 05:06:32 +03:00
Add config option "disablePathToLower"
Enabling this prevents lowercasing of the path/url. Fixes #557
This commit is contained in:
parent
49fe04c0bd
commit
52d94fa675
7 changed files with 45 additions and 11 deletions
|
@ -102,7 +102,7 @@ func SanitizeURLKeepTrailingSlash(in string) string {
|
|||
// uri: Vim (text editor)
|
||||
// urlize: vim-text-editor
|
||||
func URLize(uri string) string {
|
||||
sanitized := MakePathToLower(uri)
|
||||
sanitized := MakePathSanitized(uri)
|
||||
|
||||
// escape unicode letters
|
||||
parsedUri, err := url.Parse(sanitized)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue