summaryrefslogtreecommitdiffstats
path: root/hugolib/page.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-11-01 17:15:04 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-11-01 18:45:34 +0100
commit52ea07d2eb9c581015f85c0d2d6973640a62281b (patch)
tree5686ef920a723f3ded34b5b9b50fb46d7b8b4b9b /hugolib/page.go
parent77fc74a5b20f50298ac4a1cd88e436932fc2226f (diff)
Fix taxonomy weight sort regression
Fixes #10406
Diffstat (limited to 'hugolib/page.go')
-rw-r--r--hugolib/page.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index 9f0d08ca3..ec7b82277 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -268,7 +268,10 @@ func (p *pageState) Pages() page.Pages {
case page.KindSection, page.KindHome:
pages = p.getPagesAndSections()
case page.KindTerm:
- pages = p.bucket.getTaxonomyEntries()
+ b := p.treeRef.n
+ viewInfo := b.viewInfo
+ taxonomy := p.s.Taxonomies()[viewInfo.name.plural].Get(viewInfo.termKey)
+ pages = taxonomy.Pages()
case page.KindTaxonomy:
pages = p.bucket.getTaxonomies()
default: