mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 14:16:06 +00:00
Page Group functions now work even when an uppercase field / method is provided.
This commit is contained in:
1 parent
4b9ea105c2
commit
07f2ef9c5e
1 file changed
+3
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user