From 070b0383c9cd68ddaccb2ae44828c8be8fb5b51f Mon Sep 17 00:00:00 2001 From: eggy Date: Tue, 9 Aug 2022 15:37:32 -0400 Subject: [PATCH] feat: lots of things --- components/BlogStatBox.vue | 5 +++-- components/CommitStatBox.vue | 30 +++++++++++++------------ components/HomeStatBox.vue | 13 ++++++++--- components/StoryStatBox.vue | 8 +++---- nuxt.config.ts | 2 ++ pages/[...slug].vue | 43 ++++++++++++++++++++++++++---------- pages/index.vue | 2 +- 7 files changed, 67 insertions(+), 36 deletions(-) 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");