Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-01-24 13:15:54 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-14 15:24:36 +0300
commit9563c7d13b157612b01a9d108c134c407126b328 (patch)
tree0965acb11716c0693be0fa78193e3a88bdb2ce15 /resources/page/page_marshaljson.autogen.go
parentc707b71cdf343b8e19b8682a67aa90fee1d21c3f (diff)
Finally remove deprecated Page methods
They have been deprecated for a very long time, first with a warning, then with an ERROR. Now they are removed. Closes #4117
Diffstat (limited to 'resources/page/page_marshaljson.autogen.go')
-rw-r--r--resources/page/page_marshaljson.autogen.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/resources/page/page_marshaljson.autogen.go b/resources/page/page_marshaljson.autogen.go
index 6cfa411e2..7b44d4a72 100644
--- a/resources/page/page_marshaljson.autogen.go
+++ b/resources/page/page_marshaljson.autogen.go
@@ -17,9 +17,6 @@ package page
import (
"encoding/json"
- "html/template"
- "time"
-
"github.com/bep/gitmap"
"github.com/gohugoio/hugo/common/maps"
"github.com/gohugoio/hugo/config"
@@ -29,6 +26,8 @@ import (
"github.com/gohugoio/hugo/media"
"github.com/gohugoio/hugo/navigation"
"github.com/gohugoio/hugo/source"
+ "html/template"
+ "time"
)
func MarshalPageToJSON(p Page) ([]byte, error) {
@@ -69,7 +68,8 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
linkTitle := p.LinkTitle()
isNode := p.IsNode()
isPage := p.IsPage()
- path := p.Pathc()
+ path := p.Path()
+ pathc := p.Pathc()
slug := p.Slug()
lang := p.Lang()
isSection := p.IsSection()
@@ -127,6 +127,7 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
IsNode bool
IsPage bool
Path string
+ Pathc string
Slug string
Lang string
IsSection bool
@@ -183,6 +184,7 @@ func MarshalPageToJSON(p Page) ([]byte, error) {
IsNode: isNode,
IsPage: isPage,
Path: path,
+ Pathc: pathc,
Slug: slug,
Lang: lang,
IsSection: isSection,