chore: fix outdate reminder grammar

This commit is contained in:
草师傅 2025-08-20 17:29:09 +08:00
parent 95e5a1618a
commit 65c5fdeae1
Signed by: gb
GPG key ID: 43330A030E2D6478

View file

@ -7,8 +7,8 @@ const dateDelta = dateNow - lastUpdated
const Day = 1000 * 60 * 60 * 24
const daysDelta = Math.round(dateDelta / Day)
---
{ daysDelta >= 30 &&
<Callout type="warning" icon="📅">
This article was updated on {daysDelta} days ago. The content may be outdated.
</Callout>
{ ( lastUpdatedAt && daysDelta >= 30 ) &&
<Callout type="warning" icon="📅">
This article was updated {daysDelta} days ago. The content may be outdated.
</Callout>
}