From: Alekos Filini Date: Mon, 23 Aug 2021 14:49:00 +0000 (+0200) Subject: Check if git hash is available before using it X-Git-Url: http://internal-gitweb-vhost/?a=commitdiff_plain;h=997cbb8ed383c88016e82db1c35fdd6a2c8d093b;p=afilini.com Check if git hash is available before using it --- 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