mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +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 {
|
func MakePathSanitized(s string) string {
|
||||||
if viper.GetBool("DisablePathToLower") {
|
if viper.GetBool("DisablePathToLower") {
|
||||||
return MakePath(s)
|
return MakePath(s)
|
||||||
} else {
|
|
||||||
return strings.ToLower(MakePath(s))
|
|
||||||
}
|
}
|
||||||
|
return strings.ToLower(MakePath(s))
|
||||||
}
|
}
|
||||||
|
|
||||||
func MakeTitle(inpath string) string {
|
func MakeTitle(inpath string) string {
|
||||||
|
Reference in New Issue
Block a user