mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Run mage generate
This commit is contained in:
parent
c892e75fbc
commit
9cd7db61d3
1 changed files with 1 additions and 5 deletions
|
@ -17,9 +17,8 @@ package page
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/gohugoio/hugo/config"
|
"github.com/gohugoio/hugo/config"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func MarshalPageToJSON(p Page) ([]byte, error) {
|
func MarshalPageToJSON(p Page) ([]byte, error) {
|
||||||
|
@ -39,7 +38,6 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
|
||||||
isNode := p.IsNode()
|
isNode := p.IsNode()
|
||||||
isPage := p.IsPage()
|
isPage := p.IsPage()
|
||||||
path := p.Path()
|
path := p.Path()
|
||||||
pathc := p.Path()
|
|
||||||
slug := p.Slug()
|
slug := p.Slug()
|
||||||
lang := p.Lang()
|
lang := p.Lang()
|
||||||
isSection := p.IsSection()
|
isSection := p.IsSection()
|
||||||
|
@ -65,7 +63,6 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
|
||||||
IsNode bool
|
IsNode bool
|
||||||
IsPage bool
|
IsPage bool
|
||||||
Path string
|
Path string
|
||||||
Pathc string
|
|
||||||
Slug string
|
Slug string
|
||||||
Lang string
|
Lang string
|
||||||
IsSection bool
|
IsSection bool
|
||||||
|
@ -90,7 +87,6 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
|
||||||
IsNode: isNode,
|
IsNode: isNode,
|
||||||
IsPage: isPage,
|
IsPage: isPage,
|
||||||
Path: path,
|
Path: path,
|
||||||
Pathc: pathc,
|
|
||||||
Slug: slug,
|
Slug: slug,
|
||||||
Lang: lang,
|
Lang: lang,
|
||||||
IsSection: isSection,
|
IsSection: isSection,
|
||||||
|
|
Loading…
Reference in a new issue