From c21e5179ce9a370c416c01fbe9472be1fb5c6650 Mon Sep 17 00:00:00 2001 From: Akshay Raj Gollahalli Date: Tue, 16 Oct 2018 22:52:32 +1300 Subject: [PATCH] tpl: Use .Lastmod in embedded schema template Fixes #5320 --- tpl/tplimpl/embedded/templates.autogen.go | 2 +- tpl/tplimpl/embedded/templates/schema.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 2b36ae37b..e2d94dc8b 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 bef45b167..16c97be60 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 . }}