mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
Use the tree for taxonomy.Pages()
This commit is contained in:
@@ -186,10 +186,7 @@ func (p *pageState) Pages() page.Pages {
|
||||
case page.KindSection, page.KindHome:
|
||||
pages = p.getPagesAndSections()
|
||||
case page.KindTaxonomy:
|
||||
b := p.treeRef.n
|
||||
viewInfo := b.viewInfo
|
||||
taxonomy := p.s.Taxonomies()[viewInfo.name.plural].Get(viewInfo.termKey)
|
||||
pages = taxonomy.Pages()
|
||||
pages = p.bucket.getTaxonomyEntries()
|
||||
case page.KindTaxonomyTerm:
|
||||
pages = p.bucket.getTaxonomies()
|
||||
default:
|
||||
|
Reference in New Issue
Block a user