diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go index 50849e234..111045535 100644 --- a/tpl/template_embedded.go +++ b/tpl/template_embedded.go @@ -99,20 +99,20 @@ func (t *GoHtmlTemplate) EmbedTemplates() { // Add SEO & Social metadata t.AddInternalTemplate("_default", "opengraph.html", ` - + {{ with .Params.images }}{{ range first 6 . }} {{ end }}{{ end }} -{{ with .Params.audio }} +{{ with .Params.audio }} {{ end }}{{ with .Params.locale }} {{ end }}{{ with .Site.Params.title }} {{ end }}{{ with .Params.videos }} {{ range .Params.videos }} -{{ end }} +{{ end }}{{ end }} {{ $permalink := .Permalink }} @@ -133,7 +133,7 @@ func (t *GoHtmlTemplate) EmbedTemplates() { {{ with .Params.tags }}{{ range first 6 . }} {{ end }}{{ end }} -{{ end }} +{{ end }}{{ end }} {{ with .Site.Social.facebook_admin }}{{ end }}`) @@ -162,11 +162,11 @@ func (t *GoHtmlTemplate) EmbedTemplates() { t.AddInternalTemplate("_default", "schema.html", `{{ with .Site.Social.GooglePlus }}{{ end }} - + -{{if .IsPage}} - - +{{if .IsPage}}{{ $ISO8601 := "2006-01-02T15:04:05-07:00" }}{{ if ne (.PublishDate.Format $ISO8601) "0001-01-01T00:00:00+00:00" }} +{{ end }} + {{ with .Params.images }}{{ range first 6 . }} @@ -174,6 +174,6 @@ func (t *GoHtmlTemplate) EmbedTemplates() { -{{ end }}{{ end }}`) +{{ end }}`) }