mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +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:
@@ -57,6 +57,7 @@ func newPageBase(metaProvider *pageMeta) (*pageState, error) {
|
||||
RefProvider: page.NopPage,
|
||||
ShortcodeInfoProvider: page.NopPage,
|
||||
LanguageProvider: s,
|
||||
pagePages: &pagePages{},
|
||||
|
||||
InternalDependencies: s,
|
||||
init: lazy.New(),
|
||||
|
Reference in New Issue
Block a user