Feed the titleized taxonomy key through string replace to replace '-' with ' ' for proper display of the taxonmy title - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit f52e66289003488f6749a445dbe600f8b0c66fbc
(DIR) parent 938733f48f72e81fcbae4b4196c9f0b31e198e00
(HTM) 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:
M hugolib/site.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) 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