From b9879729bfa8bf378b23216e88b820426bc7b653 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Thu, 4 Nov 2021 14:59:15 -0500 Subject: [PATCH] Fix lastmod displaying & show even when GitInfo is enabled --- layouts/partials/post-metadata.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layouts/partials/post-metadata.html b/layouts/partials/post-metadata.html index b346cdf..48b56b8 100644 --- a/layouts/partials/post-metadata.html +++ b/layouts/partials/post-metadata.html @@ -13,8 +13,8 @@ {{ $gitinfo = true }} {{ end }} - {{ if not $gitinfo }} - {{ if ne .Lastmod .Date }} + {{/* TODO: make this be a tooltip */}} + {{ if ne (time.Format "2006-01-02" .Lastmod) (time.Format "2006-01-02" .Date) }} {{ partial "icon.html" "pencil" }} {{ end }} - {{ end }} {{ with .Params.authors }}