From a13f4856876f0f411bb10940a8cd49d29610a375 Mon Sep 17 00:00:00 2001 From: Jaron Date: Sat, 2 May 2026 21:28:14 -0500 Subject: [PATCH] feat: add date schema and formatting to writing collection and update UI layout --- app/layouts/main.vue | 2 +- app/pages/index.vue | 6 ++++- app/pages/writing/index.vue | 50 ++++++++++++++++++++++++++++++------- content.config.ts | 7 +++++- content/writing/thing.md | 6 ----- 5 files changed, 53 insertions(+), 18 deletions(-) delete mode 100644 content/writing/thing.md diff --git a/app/layouts/main.vue b/app/layouts/main.vue index 097327e..e44078c 100644 --- a/app/layouts/main.vue +++ b/app/layouts/main.vue @@ -121,7 +121,7 @@ svg[height='0'] { } .name { - font-size: 4rem; + font-size: 3rem; font-weight: 400; line-height: 1.2; margin: 0; diff --git a/app/pages/index.vue b/app/pages/index.vue index c904185..15b9b3f 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -163,7 +163,7 @@ definePageMeta({ - diff --git a/content.config.ts b/content.config.ts index faaddf3..aefa803 100644 --- a/content.config.ts +++ b/content.config.ts @@ -1,10 +1,15 @@ -import { defineContentConfig, defineCollection } from '@nuxt/content'; +import { defineContentConfig, defineCollection, z } from '@nuxt/content'; export default defineContentConfig({ collections: { writing: defineCollection({ type: 'page', source: 'writing/**/*.md', + schema: z.object({ + title: z.string(), + date: z.coerce.date(), + description: z.string(), + }), }), }, }); diff --git a/content/writing/thing.md b/content/writing/thing.md deleted file mode 100644 index 5949007..0000000 --- a/content/writing/thing.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: An idea -description: Something I thought of once. ---- - -blah blah blah