hugo/tpl/collections
Bjørn Erik Pedersen 8d898ad667 tpl/collections: Unwrap any interface value in sort and where
Hugo `0.55.0` introduced some new interface types for `Page` etc.

This worked great in general, but there were cases where this would fail in `where` and `sort`.

One such example would be sorting by `MenuItem.Page.Date` where `Page` on `MenuItem` was a small subset of the bigger `page.Page` interface.

This commit fixes that by unwrapping such interface values.

Fixes #5989
2019-06-09 16:54:36 +02:00
..
append.go
append_test.go
apply.go
apply_test.go
collections.go tpl/collections: Return error on invalid input in in 2019-04-19 08:58:12 +02:00
collections_test.go tpl/collections: Unwrap any interface value in sort and where 2019-06-09 16:54:36 +02:00
complement.go
complement_test.go Run gofmt -s 2019-03-23 20:15:06 +01:00
index.go
index_test.go
init.go
init_test.go
reflect_helpers.go all: Apply staticcheck recommendations 2019-03-24 16:14:51 +01:00
sort.go
sort_test.go
symdiff.go
symdiff_test.go Run gofmt -s 2019-03-23 20:15:06 +01:00
where.go tpl/collections: Unwrap any interface value in sort and where 2019-06-09 16:54:36 +02:00
where_test.go tpl/collections: Unwrap any interface value in sort and where 2019-06-09 16:54:36 +02:00