mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
Add config option "disablePathToLower"
Enabling this prevents lowercasing of the path/url. Fixes #557
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
49fe04c0bd
commit
52d94fa675
@@ -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)] }
|
||||
|
Reference in New Issue
Block a user