shithub: hugo

Download patch

ref: f52e66289003488f6749a445dbe600f8b0c66fbc
parent: 938733f48f72e81fcbae4b4196c9f0b31e198e00
author: Joel Scoble <[email protected]>
date: Thu Oct 2 12:28:24 EDT 2014

Feed the titleized taxonomy key through string replace to replace '-' with ' ' for proper display of the taxonmy title

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -815,7 +815,7 @@
 	for t := range taxes {
 		base := t.plural + "/" + t.key
 		n := s.NewNode()
-		n.Title = strings.Title(t.key)
+		n.Title = strings.Replace(strings.Title(t.key), "-", " ", -1)
 		s.setUrls(n, base)
 		n.Date = t.pages[0].Page.Date
 		n.Data[t.singular] = t.pages