mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
@@ -60,6 +60,9 @@ type pageCommon struct {
|
||||
// Lazily initialized dependencies.
|
||||
init *lazy.Init
|
||||
|
||||
// Store holds state that survives server rebuilds.
|
||||
store *maps.Scratch
|
||||
|
||||
// All of these represents the common parts of a page.Page
|
||||
maps.Scratcher
|
||||
navigation.PageMenusProvider
|
||||
@@ -134,6 +137,10 @@ type pageCommon struct {
|
||||
forceRender bool
|
||||
}
|
||||
|
||||
func (p *pageCommon) Store() *maps.Scratch {
|
||||
return p.store
|
||||
}
|
||||
|
||||
type pagePages struct {
|
||||
pagesInit sync.Once
|
||||
pages page.Pages
|
||||
|
Reference in New Issue
Block a user