mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
preserve alias case while lowercasing taxonomy
This commit is contained in:
@@ -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.MakePath(in)
|
||||
return helpers.MakePathToLower(in)
|
||||
}
|
||||
|
||||
func (i Taxonomy) Get(key string) WeightedPages { return i[kp(key)] }
|
||||
|
Reference in New Issue
Block a user