commit 07f2ef9c5e1171934c5abb1001b821bdd946d768
parent 4b9ea105c2adfcee021d9902cd1b0b73be791a78
Author: spf13 <steve.francia@gmail.com>
Date: Tue, 4 Nov 2014 00:31:57 -0500
Page Group functions now work even when an uppercase field / method is provided.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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
}