mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 20:22:38 +00:00
helpers: Remove the else in MakePathSanitized
This commit is contained in:
+1
-2
@@ -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