Fix WeightedPages in union etc.
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 13 Apr 2019 09:40:51 +0000 (11:40 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 13 Apr 2019 16:52:38 +0000 (18:52 +0200)
commitf2795d4d2cef30170af43327f3ff7114923833b1
tree2b48f8f3903313f9bdbb17991bcfd29e186d61bb
parente85c057f99dc2eeb6994bf24105bc48196841b88
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
hugolib/collections_test.go
hugolib/site.go
hugolib/taxonomy.go
resources/page/weighted.go