summaryrefslogtreecommitdiffstats
path: root/resources/page/taxonomy.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/page/taxonomy.go')
-rw-r--r--resources/page/taxonomy.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/page/taxonomy.go b/resources/page/taxonomy.go
index 66c9e6fae..7258ec197 100644
--- a/resources/page/taxonomy.go
+++ b/resources/page/taxonomy.go
@@ -16,6 +16,7 @@ package page
import (
"fmt"
"sort"
+ "strings"
"github.com/gohugoio/hugo/compare"
"github.com/gohugoio/hugo/langs"
@@ -58,11 +59,11 @@ type OrderedTaxonomyEntry struct {
// Get the weighted pages for the given key.
func (i Taxonomy) Get(key string) WeightedPages {
- return i[key]
+ return i[strings.ToLower(key)]
}
// Count the weighted pages for the given key.
-func (i Taxonomy) Count(key string) int { return len(i[key]) }
+func (i Taxonomy) Count(key string) int { return len(i[strings.ToLower(key)]) }
// TaxonomyArray returns an ordered taxonomy with a non defined order.
func (i Taxonomy) TaxonomyArray() OrderedTaxonomy {