hugo/tpl
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
..
cast
collections tpl/collections: Unwrap any interface value in sort and where 2019-06-09 16:54:36 +02:00
compare tpl/compare: Fix nil compare in eq/ne for interface values 2019-04-29 18:43:44 +02:00
crypto
data all: Apply staticcheck recommendations 2019-03-24 16:14:51 +01:00
encoding
fmt
hugo tpl: Fix hugo package name and add godocs 2019-04-27 22:44:57 +02:00
images
inflect
internal
lang
math all: Apply staticcheck recommendations 2019-03-24 16:14:51 +01:00
os all: Apply staticcheck recommendations 2019-03-24 16:14:51 +01:00
partials tpl: Allow the partial template func to return any type 2019-04-02 10:30:24 +02:00
path
reflect tpl: Fix hugo package name and add godocs 2019-04-27 22:44:57 +02:00
resources
safe
site tpl: Fix hugo package name and add godocs 2019-04-27 22:44:57 +02:00
strings
templates
time
tplimpl Remove references to Google+ 2019-05-26 19:24:45 +02:00
transform hugolib: Consider summary in front matter for .Summary 2019-04-05 19:11:04 +02:00
urls
template.go tpl/tplimpl: Handle late transformation of templates 2019-04-16 21:24:09 +02:00
template_info.go tpl: Allow the partial template func to return any type 2019-04-02 10:30:24 +02:00
template_test.go