diff --git a/components/BlogStatBox.vue b/components/BlogStatBox.vue index 5fc8215..66a3e8a 100644 --- a/components/BlogStatBox.vue +++ b/components/BlogStatBox.vue @@ -12,18 +12,19 @@ const docs = await queryContent("/blog") .where({ _draft: false }) .find(); -const latest = docs.at(-1); +const latest = docs.at(-1) as BlogParsedContent; const latestDate = dayjs(latest.date).utc(); const prettyDate = latestDate.format("DD MMM YYYY");