fix: remove use of deprecated .Site.LastChange property
Some checks failed
/ test (push) Failing after 12s

This commit is contained in:
Matthieu Bessat 2024-11-24 18:29:34 +01:00
parent ac424f868a
commit b9a43b78b1

View file

@ -30,8 +30,8 @@
<meta property='article:modified_time' content='{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}'/>
{{- end -}}
{{- else -}}
{{- if not .Site.LastChange.IsZero -}}
<meta property='og:updated_time' content='{{ .Site.LastChange.Format " 2006-01-02T15:04:05-07:00 " | safeHTML }}'/>
{{- if not .Site.Lastmod.IsZero -}}
<meta property='og:updated_time' content='{{ .Site.Lastmod.Format " 2006-01-02T15:04:05-07:00 " | safeHTML }}'/>
{{- end -}}
{{- end -}}