mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
hugolib: Do not FirstUpper taxonomy titles
Doing so was probably a mistake. This may be a breaking change for some people, but it's easy to restore the previous behaviour in the layouts. Fixes #5172
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
2cf8fe2ea2
commit
be3ae3ec92
@@ -1830,10 +1830,7 @@ func (s *Site) newTaxonomyPage(plural, key string) *Page {
|
||||
p := s.newNodePage(KindTaxonomy, plural, key)
|
||||
|
||||
if s.Info.preserveTaxonomyNames {
|
||||
// Keep (mostly) as is in the title
|
||||
// We make the first character upper case, mostly because
|
||||
// it is easier to reason about in the tests.
|
||||
p.title = helpers.FirstUpper(key)
|
||||
p.title = key
|
||||
} else {
|
||||
p.title = strings.Replace(s.titleFunc(key), "-", " ", -1)
|
||||
}
|
||||
|
Reference in New Issue
Block a user