From d9b0e43a9aad73333cab51f88a73a88e90398a03 Mon Sep 17 00:00:00 2001 From: Vezpi Date: Thu, 2 Apr 2026 19:13:33 +0000 Subject: [PATCH] fix: in inline-meta div --- .../partials/article/components/details.html | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index e3356db..3dd7223 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -45,18 +45,19 @@ {{ T "article.readingTime" $Page.ReadingTime }} {{ end }} + + {{- $date := $Page.Date.Format "20060102" | int -}} + {{- $lastmod := $Page.Lastmod.Format "20060102" | int -}} + {{- if gt $lastmod $date -}} +
+ {{ partial "helper/icon" "refresh" }} + +
+ {{- end -}} - {{- $date := $Page.Date.Format "20060102" | int -}} - {{- $lastmod := $Page.Lastmod.Format "20060102" | int -}} - {{- if gt $lastmod $date -}} -
- {{ partial "helper/icon" "refresh" }} - -
- {{- end -}} {{ end }}