From 0e4648cfc901969d203529ce1d27a39274f6aafe Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Sat, 31 Aug 2024 19:57:10 +0200 Subject: [PATCH] fix: enable git info for Lastmod --- hugo.toml | 2 ++ layouts/partials/opengraph/include.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hugo.toml b/hugo.toml index 352d9f4..8946064 100644 --- a/hugo.toml +++ b/hugo.toml @@ -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] diff --git a/layouts/partials/opengraph/include.html b/layouts/partials/opengraph/include.html index ad5cd18..ba4bc86 100644 --- a/layouts/partials/opengraph/include.html +++ b/layouts/partials/opengraph/include.html @@ -32,8 +32,8 @@ {{- end -}} {{- else -}} - {{ if not .Site.LastChange.IsZero }} - + {{ if not .Site.Lastmod.IsZero }} + {{- end -}} {{- end -}}