hugo/tpl/collections
Bjørn Erik Pedersen 6667c6d743 tpl/collections: Add group template func
This extends the page grouping in Hugo with a template function that allows for ad-hoc grouping.

A made-up example:

```
{{ $cool := where .Site.RegularPages "Params.cool" true | group "cool" }}
{{ $blue := where .Site.RegularPages "Params.blue" true | group "blue" }}
{{ $paginator := .Paginate (slice $cool $blue) }}
```

Closes #4865
2018-09-08 20:20:26 +02:00
..
apply.go tpl/collections: Add Pages support to Intersect and Union 2017-07-03 21:48:03 +02:00
apply_test.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
collections.go tpl/collections: Add group template func 2018-09-08 20:20:26 +02:00
collections_test.go tpl/collections: Add group template func 2018-09-08 20:20:26 +02:00
index.go tpl: Add template function namespaces 2017-04-30 10:56:38 +02:00
index_test.go all: gofmt -s 2017-08-07 20:03:15 +02:00
init.go tpl/collections: Add group template func 2018-09-08 20:20:26 +02:00
init_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
reflect_helpers.go tpl/collections: Add Pages support to Intersect and Union 2017-07-03 21:48:03 +02:00
sort.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
sort_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
where.go tpl/collections: Fix intersect on []interface{} handling 2017-07-28 07:21:21 +02:00
where_test.go tpl/collections: Fix intersect on []interface{} handling 2017-07-28 07:21:21 +02:00