From 5ac24d0bc252fe57453a7dcd8cdd4ffe7df21fe5 Mon Sep 17 00:00:00 2001 From: grassblock Date: Mon, 11 Aug 2025 17:45:42 +0800 Subject: [PATCH] fix: only show updated date when it's later than published date --- src/pages/blog/[...slug].astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index 623d3a6..5a44317 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -65,7 +65,7 @@ const cover = customFeaturedImage || matchedImage_src?.src || firstImageURL || `

{entry.data.title}

{authorInfo.map((a: any) => )} {pubDate} - {pubDate === lastUpdatedDate && ({t('article.last_update')} {lastUpdatedDate})} + {new Date(lastUpdated) > new Date(entry.data.date) && ({t('article.last_update')} {lastUpdatedDate})} | {wordcount.words} {t('article.word_count')} { (cover && cover !== firstImageURL && cover !== `/blog/${slug}/featured.png`) && {`cover }