hugolib: Allow creating page groups from any page collection
authorVincent Danjean <vdanjean@users.noreply.github.com>
Sat, 8 Sep 2018 09:14:09 +0000 (11:14 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 8 Sep 2018 09:14:09 +0000 (11:14 +0200)
commitcfda13b36367465016f4458ab9924c948ed02b6f
tree0a7a99e77fecba344f18871de1a2ba35e9d5776b
parentbb2fe814c2db0c494b3b678a5da20a6cc0538857
hugolib: Allow creating page groups from any page collection

This also adjusts the pagination logic to allow for these new collections.

Note that we will follow up with a template function named `group` that will be the end user API. The `.Group` method on `Page` should be considered as internal.

Updates #4865
hugolib/pageGroup.go
hugolib/pagination.go