From: Bjørn Erik Pedersen Date: Thu, 3 Mar 2016 20:54:23 +0000 (+0100) Subject: Prevent capitalized taxonomy labels X-Git-Tag: v0.16~293 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ccd2f4c32b77c9b722943a96b5d5af99cd7b1712;p=brevno-suite%2Fhugo Prevent capitalized taxonomy labels Fixes #1880 --- diff --git a/hugolib/site.go b/hugolib/site.go index f3e14399..1d5f0c49 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -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) }