tpl/collections: Fix slice type handling in sort
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 9 Jun 2019 10:50:53 +0000 (12:50 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 10 Jun 2019 06:32:44 +0000 (08:32 +0200)
commite8a716b23a1ca78cf29460daacd4ba49bbc05ad1
treea55a3ade6ca19306b3ebbae6cbafd2aefaa4c880
parent3e6cb2cb77e16be5b6ddd4ae55d5fc6bfba2d226
tpl/collections: Fix slice type handling in sort

The `sort` template func was producing a `[]page.Page` which did not work in `.Paginate`.

Fixes #6023
go.sum
hugolib/paginator_test.go
resources/page/pages.go
resources/page/pages_test.go
tpl/collections/sort.go
tpl/collections/sort_test.go