Prevent capitalized taxonomy labels

Fixes #1880
This commit is contained in:
Bjørn Erik Pedersen 2016-03-03 21:54:23 +01:00
parent e85b821d3e
commit ccd2f4c32b

View file

@ -1510,8 +1510,8 @@ func (s *Site) newTaxonomyNode(t taxRenderInfo) (*Node, string) {
n := s.NewNode()
if s.Info.preserveTaxonomyNames {
key = helpers.MakePathSanitized(key)
// keep as is, just make sure the first char is upper
n.Title = helpers.FirstUpper(t.key)
// keep as is in the title
n.Title = t.key
} else {
n.Title = strings.Replace(strings.Title(t.key), "-", " ", -1)
}