mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-20 07:51:58 +00: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 {
|
for t := range taxes {
|
||||||
base := t.plural + "/" + t.key
|
base := t.plural + "/" + t.key
|
||||||
n := s.NewNode()
|
n := s.NewNode()
|
||||||
n.Title = strings.Title(t.key)
|
n.Title = strings.Replace(strings.Title(t.key), "-", " ", -1)
|
||||||
s.setUrls(n, base)
|
s.setUrls(n, base)
|
||||||
n.Date = t.pages[0].Page.Date
|
n.Date = t.pages[0].Page.Date
|
||||||
n.Data[t.singular] = t.pages
|
n.Data[t.singular] = t.pages
|
||||||
|
|
Loading…
Reference in a new issue