diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html
index e6d0f1f..b346cdf 100644
--- a/layouts/partials/post-metadata.html
+++ b/layouts/partials/post-metadata.html
@@ -8,7 +8,12 @@
- {{ if not .Site.Params.repoURL }}
+ {{ $gitinfo := false }}
+ {{ with .GitInfo }}
+ {{ $gitinfo = true }}
+ {{ end }}
+
+ {{ if not $gitinfo }}
{{ if ne .Lastmod .Date }}
{{ partial "icon.html" "pencil" }}