From: Akshay Raj Gollahalli Date: Tue, 16 Oct 2018 09:52:32 +0000 (+1300) Subject: tpl: Use .Lastmod in embedded schema template X-Git-Tag: v0.50~56 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c21e5179ce9a370c416c01fbe9472be1fb5c6650;p=brevno-suite%2Fhugo tpl: Use .Lastmod in embedded schema template Fixes #5320 --- diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 2b36ae37..e2d94dc8 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -265,7 +265,7 @@ if (!doNotTrack) { {{if .IsPage}}{{ $ISO8601 := "2006-01-02T15:04:05-07:00" }}{{ if not .PublishDate.IsZero }} {{ end }} -{{ if not .Date.IsZero }}{{ end }} +{{ if not .Lastmod.IsZero }}{{ end }} {{ with .Params.images }}{{ range first 6 . }} diff --git a/tpl/tplimpl/embedded/templates/schema.html b/tpl/tplimpl/embedded/templates/schema.html index bef45b16..16c97be6 100644 --- a/tpl/tplimpl/embedded/templates/schema.html +++ b/tpl/tplimpl/embedded/templates/schema.html @@ -4,7 +4,7 @@ {{if .IsPage}}{{ $ISO8601 := "2006-01-02T15:04:05-07:00" }}{{ if not .PublishDate.IsZero }} {{ end }} -{{ if not .Date.IsZero }}{{ end }} +{{ if not .Lastmod.IsZero }}{{ end }} {{ with .Params.images }}{{ range first 6 . }}