mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Feed the titleized taxonomy key through string replace to replace '-' with ' ' for proper display of the taxonmy title
This commit is contained in:
parent
938733f48f
commit
f52e662890
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue