mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
hugolib: Fix taxonomies vs expired
In Hugo 0.57 we needed to delay the page metadata initialization until we had built the page graph. This introduced a regression in that we now created taxonomy entries for expired pages. This fixes that by moving the "should not build" filter before we assemble the taxonomies. Fixes #6213
This commit is contained in:
@@ -466,14 +466,6 @@ func (c *PageCollections) createWorkAllPages() error {
|
||||
}
|
||||
}
|
||||
|
||||
tmp := bucket.pages[:0]
|
||||
for _, x := range bucket.pages {
|
||||
if c.pagesMap.s.shouldBuild(x) {
|
||||
tmp = append(tmp, x)
|
||||
}
|
||||
}
|
||||
bucket.pages = tmp
|
||||
|
||||
if bucket.isEmpty() {
|
||||
if bucket.owner.IsSection() && bucket.owner.File().IsZero() {
|
||||
// Check for any nested section.
|
||||
|
Reference in New Issue
Block a user