mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
resources/page: Regenerate JSON wrapper
This commit is contained in:
parent
75467cd785
commit
ebab291c0e
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@ package page
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/bep/gitmap"
|
||||
"github.com/gohugoio/hugo/config"
|
||||
"github.com/gohugoio/hugo/langs"
|
||||
"github.com/gohugoio/hugo/media"
|
||||
|
@ -76,6 +77,7 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
|
|||
weight := p.Weight()
|
||||
language := p.Language()
|
||||
file := p.File()
|
||||
gitInfo := p.GitInfo()
|
||||
outputFormats := p.OutputFormats()
|
||||
alternativeOutputFormats := p.AlternativeOutputFormats()
|
||||
menus := p.Menus()
|
||||
|
@ -131,6 +133,7 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
|
|||
Weight int
|
||||
Language *langs.Language
|
||||
File source.File
|
||||
GitInfo *gitmap.GitInfo
|
||||
OutputFormats OutputFormats
|
||||
AlternativeOutputFormats OutputFormats
|
||||
Menus navigation.PageMenus
|
||||
|
@ -185,6 +188,7 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
|
|||
Weight: weight,
|
||||
Language: language,
|
||||
File: file,
|
||||
GitInfo: gitInfo,
|
||||
OutputFormats: outputFormats,
|
||||
AlternativeOutputFormats: alternativeOutputFormats,
|
||||
Menus: menus,
|
||||
|
|
Loading…
Reference in a new issue