mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Fix some Go code doc issues
This commit is contained in:
@@ -85,6 +85,7 @@ func MakePathToLower(s string) string {
|
||||
return strings.ToLower(MakePath(s))
|
||||
}
|
||||
|
||||
// MakeTitle trims any space and replaces hypens with a single space.
|
||||
func MakeTitle(inpath string) string {
|
||||
return strings.Replace(strings.TrimSpace(inpath), "-", " ", -1)
|
||||
}
|
||||
|
Reference in New Issue
Block a user