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