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 }}