mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Revert "hugolib: Fix potential server panic with drafts/future enabled"
This had a side-effect. I have understand this better to apply the correct fix. Will come soon.
This reverts commit 1ab4658c0d
.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user