mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
1 parent
e85b821d3e
commit
ccd2f4c32b
1 file changed
+2
-2
+2
-2
@@ -1510,8 +1510,8 @@ func (s *Site) newTaxonomyNode(t taxRenderInfo) (*Node, string) {
|
|||||||
n := s.NewNode()
|
n := s.NewNode()
|
||||||
if s.Info.preserveTaxonomyNames {
|
if s.Info.preserveTaxonomyNames {
|
||||||
key = helpers.MakePathSanitized(key)
|
key = helpers.MakePathSanitized(key)
|
||||||
// keep as is, just make sure the first char is upper
|
// keep as is in the title
|
||||||
n.Title = helpers.FirstUpper(t.key)
|
n.Title = t.key
|
||||||
} else {
|
} else {
|
||||||
n.Title = strings.Replace(strings.Title(t.key), "-", " ", -1)
|
n.Title = strings.Replace(strings.Title(t.key), "-", " ", -1)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user