mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
e85b821d3e
commit
ccd2f4c32b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue