mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
helpers: Remove the else in MakePathSanitized
This commit is contained in:
parent
faf2e50685
commit
6ff2e1dbe7
1 changed files with 1 additions and 2 deletions
|
@ -81,9 +81,8 @@ func MakePath(s string) string {
|
|||
func MakePathSanitized(s string) string {
|
||||
if viper.GetBool("DisablePathToLower") {
|
||||
return MakePath(s)
|
||||
} else {
|
||||
return strings.ToLower(MakePath(s))
|
||||
}
|
||||
return strings.ToLower(MakePath(s))
|
||||
}
|
||||
|
||||
func MakeTitle(inpath string) string {
|
||||
|
|
Loading…
Reference in a new issue