Page Group functions now work even when an uppercase field / method is provided.
authorspf13 <steve.francia@gmail.com>
Tue, 4 Nov 2014 05:31:57 +0000 (00:31 -0500)
committerspf13 <steve.francia@gmail.com>
Tue, 4 Nov 2014 05:31:57 +0000 (00:31 -0500)
hugolib/pageGroup.go

index e30e9654e422ef0381766c8eba8fc78b679cfe72..e764b47b98ccbffc90274d68d3cdf74e3f888c34 100644 (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
        }