From d5a6aebd19d6e967173550af4e90262e507b333c Mon Sep 17 00:00:00 2001 From: Vezpi Date: Tue, 10 Jun 2025 09:25:13 +0000 Subject: [PATCH] fix: compare dates at day level --- layouts/partials/article/components/details.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 50cc5bd..b337ab1 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -45,7 +45,9 @@ {{ end }} - {{- if ne .Lastmod .Date -}} + {{- $date := .Date.Format "2006-01-02" -}} + {{- $lastmod := .Lastmod.Format "2006-01-02" -}} + {{- if ne $lastmod $date -}}
{{ partial "helper/icon" "refresh" }}