fix: enable git info for Lastmod
Some checks failed
Deploy workflow / deploy (push) Failing after 14s

This commit is contained in:
Matthieu Bessat 2024-08-31 19:57:10 +02:00
parent 6336c6dc69
commit 0e4648cfc9
2 changed files with 4 additions and 2 deletions

View file

@ -5,6 +5,8 @@ assetDir = "assets"
summaryLength = 50
title = "Vélo et Mobilités en Eure-Madrie-Seine"
enableGitInfo = true
[params]
dateFmt = "2006-01-02 15:04"
[params.contact]

View file

@ -32,8 +32,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 -}}