From: Daniel Tipping Date: Sat, 14 Mar 2020 12:57:17 +0000 (+0000) Subject: Use .Lastmod for og:updated_time X-Git-Tag: v0.71.0~16 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6205d56b85fea31e008cd0fef26805bab8084786;p=brevno-suite%2Fhugo Use .Lastmod for og:updated_time .Lastmod is the time at which the website was most recently updated, rather than .Date which is the time at which the website content file was created. --- diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 821354c9..70586ed3 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -211,7 +211,7 @@ if (!doNotTrack) { {{ end }} {{- if not .Lastmod.IsZero }}{{ end }} {{- else }} -{{- if not .Date.IsZero }} +{{- if not .Date.IsZero }} {{- end }} {{- end }}{{/* .IsPage */}} diff --git a/tpl/tplimpl/embedded/templates/opengraph.html b/tpl/tplimpl/embedded/templates/opengraph.html index 68b4de5a..07d9775d 100644 --- a/tpl/tplimpl/embedded/templates/opengraph.html +++ b/tpl/tplimpl/embedded/templates/opengraph.html @@ -22,7 +22,7 @@ {{ end }} {{- if not .Lastmod.IsZero }}{{ end }} {{- else }} -{{- if not .Date.IsZero }} +{{- if not .Date.IsZero }} {{- end }} {{- end }}{{/* .IsPage */}}