preserve alias case while lowercasing taxonomy

This commit is contained in:
Joel Scoble
2014-08-21 18:01:34 -05:00
committed by spf13
parent 348e123c9f
commit 4c735a7878
3 changed files with 35 additions and 3 deletions

View File

@@ -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)] }