feat: add date schema and formatting to writing collection and update UI layout

This commit is contained in:
Jaron
2026-05-02 21:28:14 -05:00
parent 517e70f521
commit a13f485687
5 changed files with 53 additions and 18 deletions
+6 -1
View File
@@ -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(),
}),
}),
},
});