mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
@@ -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