mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
Fix WeightedPages in union etc.
We introduced a callback func() to get the owner Page in 0.55.0. Sadly, funcs is not comparable type in Go. This commit replaces the func with a struct pointer that wraps the Page. Fixes #5850
This commit is contained in:
@@ -1584,7 +1584,7 @@ func (s *Site) assembleTaxonomies() error {
|
||||
// last one will win, e.g. "hugo" vs "Hugo".
|
||||
n.term = term
|
||||
|
||||
w := page.NewWeightedPage(weight, p, n.getOwner)
|
||||
w := page.NewWeightedPage(weight, p, n.owner)
|
||||
|
||||
s.Taxonomies[plural].add(key, w)
|
||||
|
||||
|
Reference in New Issue
Block a user