mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +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:
1 parent
938733f48f
commit
f52e662890
1 file changed
+1
-1
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user