diff options
author | Bjørn Erik Pedersen <[email protected]> | 2019-08-15 09:47:25 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2019-08-15 09:52:08 +0200 |
commit | 9475f61a377fcf23f910cbfd4ddca59261326665 (patch) | |
tree | 94c7bc10cd48511e1f4855403c00d7b23969087f /hugolib/pagecollections.go | |
parent | ea9261e856c13c1d4ae05fcca08766d410b4b65c (diff) | |
download | hugo-9475f61a377fcf23f910cbfd4ddca59261326665.tar.gz hugo-9475f61a377fcf23f910cbfd4ddca59261326665.zip |
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.go | 8 |
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. |