mirror of
https://github.com/andwati/personal-website.git
synced 2026-11-26 20:48:46 +00:00
feat: Rearchitect personal website with new pages, blog functionality using Nuxt UI and Nuxt Content.
This commit is contained in:
+10
-1
@@ -1,4 +1,4 @@
|
||||
import { defineContentConfig, defineCollection } from "@nuxt/content";
|
||||
import { defineContentConfig, defineCollection, z } from "@nuxt/content";
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
@@ -6,5 +6,14 @@ export default defineContentConfig({
|
||||
type: "page",
|
||||
source: "**",
|
||||
}),
|
||||
blog: defineCollection({
|
||||
type: "page",
|
||||
source: "blog/**",
|
||||
schema: z.object({
|
||||
date: z.string(),
|
||||
image: z.string().optional(),
|
||||
badge: z.string().optional(),
|
||||
}),
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user