mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
helpers: Remove the else in MakePathSanitized
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user