mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-28 05:11:04 +00:00
8d898ad667
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 |
||
---|---|---|
.. | ||
cast | ||
collections | ||
compare | ||
crypto | ||
data | ||
encoding | ||
fmt | ||
hugo | ||
images | ||
inflect | ||
internal | ||
lang | ||
math | ||
os | ||
partials | ||
path | ||
reflect | ||
resources | ||
safe | ||
site | ||
strings | ||
templates | ||
time | ||
tplimpl | ||
transform | ||
urls | ||
template.go | ||
template_info.go | ||
template_test.go |