mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
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
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user