From: spf13 Date: Tue, 4 Nov 2014 05:31:57 +0000 (-0500) Subject: Page Group functions now work even when an uppercase field / method is provided. X-Git-Tag: v0.13~346 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=07f2ef9c;p=brevno-suite%2Fhugo Page Group functions now work even when an uppercase field / method is provided. --- diff --git a/hugolib/pageGroup.go b/hugolib/pageGroup.go index e30e9654..e764b47b 100644 --- a/hugolib/pageGroup.go +++ b/hugolib/pageGroup.go @@ -79,6 +79,9 @@ var ( ) func (p Pages) GroupBy(key string, order ...string) (PagesGroup, error) { + + key = strings.ToLower(key) + if len(p) < 1 { return nil, nil }