summaryrefslogtreecommitdiffstats
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-13 11:40:51 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-13 18:52:38 +0200
commitf2795d4d2cef30170af43327f3ff7114923833b1 (patch)
tree2b48f8f3903313f9bdbb17991bcfd29e186d61bb /hugolib/site.go
parente85c057f99dc2eeb6994bf24105bc48196841b88 (diff)
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
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index 616b5b37d..2653479ea 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -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)