hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit ccd2f4c32b77c9b722943a96b5d5af99cd7b1712
parent e85b821d3ea8567229badfd67180e94aa69835fe
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu,  3 Mar 2016 21:54:23 +0100

Prevent capitalized taxonomy labels

Fixes #1880

Diffstat:
Mhugolib/site.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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)
 	}