From 997cbb8ed383c88016e82db1c35fdd6a2c8d093b Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Mon, 23 Aug 2021 16:49:00 +0200 Subject: [PATCH] Check if git hash is available before using it --- 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 017a804..a06296b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,6 +1,6 @@ {{ if .IsPage }} - Updated: {{ .Lastmod.Format .Site.Params.dateFormat }} - Version: {{ .GitInfo.AbbreviatedHash }} - + Updated: {{ .Lastmod.Format .Site.Params.dateFormat }} - Version: {{ if isset .GitInfo "Hash" }}{{ .GitInfo.AbbreviatedHash }}{{ else }}unknown{{ end }} - {{ end }} © CC BY-SA 4.0 -- 2.49.0