From 6bad1e33910f3bdd3edfb2a80054f5698deec258 Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Sat, 4 Sep 2021 21:52:49 +0200 Subject: [PATCH] Fix GitInfo check --- layouts/partials/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a06296b..0e05d9c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,6 @@ {{ if .IsPage }} - Updated: {{ .Lastmod.Format .Site.Params.dateFormat }} - Version: {{ if isset .GitInfo "Hash" }}{{ .GitInfo.AbbreviatedHash }}{{ else }}unknown{{ end }} - + Updated: {{ .Lastmod.Format .Site.Params.dateFormat }} - Version: {{ with .GitInfo }}{{ .AbbreviatedHash }}{{ else }}unknown{{ end }} - {{ end }} © CC BY-SA 4.0 -- 2.49.0