Page Group functions now work even when an uppercase field / method is provided.

This commit is contained in:
spf13 committed 2014-11-04 00:31:57 -05:00
1 parent 4b9ea105c2
commit 07f2ef9c5e
1 file changed
+3
+3
View File
@@ -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
}