summaryrefslogtreecommitdiffstats
path: root/hugolib/taxonomy.go
diff options
context:
space:
mode:
authorchrongzhang <chrongzhang@tencent.com>2015-09-01 20:53:25 +0800
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2015-09-01 15:26:02 +0200
commit52d94fa67578f6b63035e73b236ca8abd40d0006 (patch)
treea91a2c1ee95ec979e9d7e92054f4f1cfd712040a /hugolib/taxonomy.go
parent49fe04c0bd8111bf686d9205d543f8651ea24cfc (diff)
Add config option "disablePathToLower"
Enabling this prevents lowercasing of the path/url. Fixes #557
Diffstat (limited to 'hugolib/taxonomy.go')
-rw-r--r--hugolib/taxonomy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/taxonomy.go b/hugolib/taxonomy.go
index 22cdfbbb3..1fd34cadb 100644
--- a/hugolib/taxonomy.go
+++ b/hugolib/taxonomy.go
@@ -60,7 +60,7 @@ type OrderedTaxonomyEntry struct {
// KeyPrep... Taxonomies should be case insensitive. Can make it easily conditional later.
func kp(in string) string {
- return helpers.MakePathToLower(in)
+ return helpers.MakePathSanitized(in)
}
func (i Taxonomy) Get(key string) WeightedPages { return i[kp(key)] }