Fix intersect and similar for term entry page collections

Fixes #12254
This commit is contained in:
Bjørn Erik Pedersen 2024-03-15 13:12:25 +01:00
parent 57206e7274
commit b40f3c7df6
5 changed files with 69 additions and 5 deletions

View file

@ -36,6 +36,7 @@ import (
"github.com/gohugoio/hugo/common/herrors"
"github.com/gohugoio/hugo/common/maps"
"github.com/gohugoio/hugo/common/types"
"github.com/gohugoio/hugo/source"
@ -731,3 +732,9 @@ func (p pageWithWeight0) Weight0() int {
func (p pageWithWeight0) page() page.Page {
return p.pageState
}
var _ types.Unwrapper = (*pageWithWeight0)(nil)
func (p pageWithWeight0) Unwrapv() any {
return p.pageState
}