mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
resources/page: Regenerate JSON wrapper
This commit is contained in:
@@ -17,6 +17,7 @@ package page
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"github.com/bep/gitmap"
|
||||||
"github.com/gohugoio/hugo/config"
|
"github.com/gohugoio/hugo/config"
|
||||||
"github.com/gohugoio/hugo/langs"
|
"github.com/gohugoio/hugo/langs"
|
||||||
"github.com/gohugoio/hugo/media"
|
"github.com/gohugoio/hugo/media"
|
||||||
@@ -76,6 +77,7 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
|
|||||||
weight := p.Weight()
|
weight := p.Weight()
|
||||||
language := p.Language()
|
language := p.Language()
|
||||||
file := p.File()
|
file := p.File()
|
||||||
|
gitInfo := p.GitInfo()
|
||||||
outputFormats := p.OutputFormats()
|
outputFormats := p.OutputFormats()
|
||||||
alternativeOutputFormats := p.AlternativeOutputFormats()
|
alternativeOutputFormats := p.AlternativeOutputFormats()
|
||||||
menus := p.Menus()
|
menus := p.Menus()
|
||||||
@@ -131,6 +133,7 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
|
|||||||
Weight int
|
Weight int
|
||||||
Language *langs.Language
|
Language *langs.Language
|
||||||
File source.File
|
File source.File
|
||||||
|
GitInfo *gitmap.GitInfo
|
||||||
OutputFormats OutputFormats
|
OutputFormats OutputFormats
|
||||||
AlternativeOutputFormats OutputFormats
|
AlternativeOutputFormats OutputFormats
|
||||||
Menus navigation.PageMenus
|
Menus navigation.PageMenus
|
||||||
@@ -185,6 +188,7 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
|
|||||||
Weight: weight,
|
Weight: weight,
|
||||||
Language: language,
|
Language: language,
|
||||||
File: file,
|
File: file,
|
||||||
|
GitInfo: gitInfo,
|
||||||
OutputFormats: outputFormats,
|
OutputFormats: outputFormats,
|
||||||
AlternativeOutputFormats: alternativeOutputFormats,
|
AlternativeOutputFormats: alternativeOutputFormats,
|
||||||
Menus: menus,
|
Menus: menus,
|
||||||
|
Reference in New Issue
Block a user