summaryrefslogtreecommitdiffstats
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-17 10:36:36 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-04-17 12:56:46 +0200
commit9b17cbb62a056ea7e26b1146cbf3ba42f5acf805 (patch)
tree28c79605fd536905bc365158993b2b2374045698 /hugolib/site.go
parent2957795f5276cc9bc8d438da2d7d9b61defea225 (diff)
hugolib: Fix Pages reinitialization on rebuilds
Which had some unpredictable behaviour when using `.Pages` on home page etc. that had a content page. Fixes #5833
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index 47ca77016..693c79f67 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1630,6 +1630,7 @@ func (s *Site) resetBuildState() {
s.init.Reset()
for _, p := range s.rawAllPages {
+ p.pagePages = &pagePages{}
p.subSections = page.Pages{}
p.parent = nil
p.Scratcher = maps.NewScratcher()