From: Joe Mooring Date: Sun, 19 Jul 2020 13:24:44 +0000 (-0400) Subject: Fix date format in internal schema template X-Git-Tag: v0.74.3~5 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a06c06a5c202de85ff47792b7468bfaeec2fea12;p=brevno-suite%2Fhugo 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 --- diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index cceb0667..190c88e3 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 19648abe..0cbae153 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 }}