summaryrefslogtreecommitdiffstats
path: root/hugolib/pagecollections.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-15 09:47:25 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-15 09:52:08 +0200
commit9475f61a377fcf23f910cbfd4ddca59261326665 (patch)
tree94c7bc10cd48511e1f4855403c00d7b23969087f /hugolib/pagecollections.go
parentea9261e856c13c1d4ae05fcca08766d410b4b65c (diff)
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
Diffstat (limited to 'hugolib/pagecollections.go')
-rw-r--r--hugolib/pagecollections.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/hugolib/pagecollections.go b/hugolib/pagecollections.go
index 4b0064252..01a194ac1 100644
--- a/hugolib/pagecollections.go
+++ b/hugolib/pagecollections.go
@@ -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.