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:
Thomas Jost
2018-09-06 15:45:29 +02:00
committed by Bjørn Erik Pedersen
parent 2cf8fe2ea2
commit be3ae3ec92
3 changed files with 27 additions and 12 deletions

View File

@@ -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)
}