tpl/collections: Improve type handling in collections.Slice

Fixes #5188
This commit is contained in:
Bjørn Erik Pedersen
2018-09-09 10:15:11 +02:00
parent 7a97d3e6bc
commit fe6676c775
10 changed files with 275 additions and 68 deletions

View File

@@ -23,7 +23,6 @@ import (
"github.com/gohugoio/hugo/media"
"github.com/gohugoio/hugo/common/collections"
"github.com/gohugoio/hugo/common/maps"
"github.com/gohugoio/hugo/langs"
@@ -71,8 +70,6 @@ var (
// Assert that it implements the interface needed for related searches.
_ related.Document = (*Page)(nil)
_ collections.Grouper = Page{}
)
const (