mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Prevent cyclic ref crash in JSON encode
Note that this commit makes no promise about great JSON output from the encoder, but the cyclic refs should be broken. Fixes #1123
This commit is contained in:
@@ -71,7 +71,7 @@ type Page struct {
|
||||
renderingConfigInit sync.Once
|
||||
PageMeta
|
||||
Source
|
||||
Position
|
||||
Position `json:"-"`
|
||||
Node
|
||||
pageMenus PageMenus
|
||||
pageMenusInit sync.Once
|
||||
|
Reference in New Issue
Block a user