shithub: hugo

Download patch

ref: 07f2ef9c5e1171934c5abb1001b821bdd946d768
parent: 4b9ea105c2adfcee021d9902cd1b0b73be791a78
author: spf13 <[email protected]>
date: Mon Nov 3 19:31:57 EST 2014

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

--- a/hugolib/pageGroup.go
+++ b/hugolib/pageGroup.go
@@ -79,6 +79,9 @@
 )
 
 func (p Pages) GroupBy(key string, order ...string) (PagesGroup, error) {
+
+	key = strings.ToLower(key)
+
 	if len(p) < 1 {
 		return nil, nil
 	}