diff options
-rw-r--r-- | hugolib/site.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index b4607387f..42e429e67 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -1511,19 +1511,12 @@ func (s *Site) resetBuildState() { spc = newPageCache() - initPage := func(p *Page) { + for _, p := range s.rawAllPages { p.subSections = Pages{} p.parent = nil p.scratch = maps.NewScratch() p.mainPageOutput = nil } - - for _, p := range s.Pages { - initPage(p) - } - for _, p := range s.headlessPages { - initPage(p) - } } func (s *Site) kindFromSections(sections []string) string { |