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

This commit is contained in:
Joel Scoble 2014-10-02 16:28:24 -05:00 committed by spf13
parent 938733f48f
commit f52e662890

View file

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