From a06c06a5c202de85ff47792b7468bfaeec2fea12 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 19 Jul 2020 09:24:44 -0400 Subject: [PATCH] Fix date format in internal schema template Prior to this change, the offset indicator for dates with positive offsets was rendered as + instead of +. Fixes #7495 --- tpl/tplimpl/embedded/templates.autogen.go | 7 ++++--- tpl/tplimpl/embedded/templates/schema.html | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index cceb0667e..190c88e32 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -294,8 +294,8 @@ if (!doNotTrack) { {{- if .IsPage }}{{ $ISO8601 := "2006-01-02T15:04:05-07:00" }}{{ if not .PublishDate.IsZero }} -{{ end }} -{{ if not .Lastmod.IsZero }}{{ end }} +{{ end }} +{{ if not .Lastmod.IsZero }}{{ end }} {{ with $.Params.images }}{{ range first 6 . -}} @@ -312,7 +312,8 @@ if (!doNotTrack) { -{{- end }}`}, +{{- end }} +`}, {`shortcodes/__h_simple_assets.html`, `{{ define "__h_simple_css" }}{{/* These template definitions are global. */}} {{- if not (.Page.Scratch.Get "__h_simple_css") -}} {{/* Only include once */}} diff --git a/tpl/tplimpl/embedded/templates/schema.html b/tpl/tplimpl/embedded/templates/schema.html index 19648abef..0cbae153d 100644 --- a/tpl/tplimpl/embedded/templates/schema.html +++ b/tpl/tplimpl/embedded/templates/schema.html @@ -2,8 +2,8 @@ {{- if .IsPage }}{{ $ISO8601 := "2006-01-02T15:04:05-07:00" }}{{ if not .PublishDate.IsZero }} -{{ end }} -{{ if not .Lastmod.IsZero }}{{ end }} +{{ end }} +{{ if not .Lastmod.IsZero }}{{ end }} {{ with $.Params.images }}{{ range first 6 . -}} @@ -20,4 +20,4 @@ -{{- end }} \ No newline at end of file +{{- end }}