hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit f52e66289003488f6749a445dbe600f8b0c66fbc
parent 938733f48f72e81fcbae4b4196c9f0b31e198e00
Author: Joel Scoble <joel.scoble@outlook.com>
Date:   Thu,  2 Oct 2014 16:28:24 -0500

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

Diffstat:
Mhugolib/site.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -815,7 +815,7 @@ func taxonomyRenderer(s *Site, taxes <-chan taxRenderInfo, results chan<- error,
 	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