diff --git a/resources/page/page_marshaljson.autogen.go b/resources/page/page_marshaljson.autogen.go index 47f385e8a..c01dceeaf 100644 --- a/resources/page/page_marshaljson.autogen.go +++ b/resources/page/page_marshaljson.autogen.go @@ -44,8 +44,8 @@ func MarshalPageToJSON(p Page) ([]byte, error) { length := p.Len() tableOfContents := p.TableOfContents() rawContent := p.RawContent() - mediaType := p.MediaType() resourceType := p.ResourceType() + mediaType := p.MediaType() permalink := p.Permalink() relPermalink := p.RelPermalink() name := p.Name() @@ -100,8 +100,8 @@ func MarshalPageToJSON(p Page) ([]byte, error) { Len int TableOfContents template.HTML RawContent string - MediaType media.Type ResourceType string + MediaType media.Type Permalink string RelPermalink string Name string @@ -155,8 +155,8 @@ func MarshalPageToJSON(p Page) ([]byte, error) { Len: length, TableOfContents: tableOfContents, RawContent: rawContent, - MediaType: mediaType, ResourceType: resourceType, + MediaType: mediaType, Permalink: permalink, RelPermalink: relPermalink, Name: name, diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 70586ed33..cceb0667e 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -246,43 +246,47 @@ if (!doNotTrack) { {{- with .Site.Social.facebook_admin }}{{ end }} `}, {`pagination.html`, `{{ $pag := $.Paginator }} -{{ if gt $pag.TotalPages 1 }} +{{ if gt $pag.TotalPages 1 -}} {{ end }} `},