diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-11-01 17:15:04 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-11-01 18:45:34 +0100 |
commit | 52ea07d2eb9c581015f85c0d2d6973640a62281b (patch) | |
tree | 5686ef920a723f3ded34b5b9b50fb46d7b8b4b9b /hugolib/page.go | |
parent | 77fc74a5b20f50298ac4a1cd88e436932fc2226f (diff) | |
download | hugo-52ea07d2eb9c581015f85c0d2d6973640a62281b.tar.gz hugo-52ea07d2eb9c581015f85c0d2d6973640a62281b.zip |
Fix taxonomy weight sort regression
Fixes #10406
Diffstat (limited to 'hugolib/page.go')
-rw-r--r-- | hugolib/page.go | 5 |
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: |