1
0
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:
Bjørn Erik Pedersen
2015-08-06 22:58:10 +02:00
parent 1583d8d094
commit de7dd70bbc
4 changed files with 11 additions and 12 deletions

View File

@@ -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)
}