From 65c5fdeae1a34d73ac213cdf9baaaf31643dea83 Mon Sep 17 00:00:00 2001 From: grassblock Date: Wed, 20 Aug 2025 17:29:09 +0800 Subject: [PATCH] chore: fix outdate reminder grammar --- src/components/OutDatedCallOut.astro | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/OutDatedCallOut.astro b/src/components/OutDatedCallOut.astro index ff09685..833525d 100644 --- a/src/components/OutDatedCallOut.astro +++ b/src/components/OutDatedCallOut.astro @@ -7,8 +7,8 @@ const dateDelta = dateNow - lastUpdated const Day = 1000 * 60 * 60 * 24 const daysDelta = Math.round(dateDelta / Day) --- -{ daysDelta >= 30 && - - This article was updated on {daysDelta} days ago. The content may be outdated. - +{ ( lastUpdatedAt && daysDelta >= 30 ) && + + This article was updated {daysDelta} days ago. The content may be outdated. + } \ No newline at end of file