mirror of
https://github.com/jaronpate/folio.git
synced 2026-10-18 17:06:56 +00:00
feat: add date schema and formatting to writing collection and update UI layout
This commit is contained in:
+6
-1
@@ -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(),
|
||||
}),
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user