feat(projects): load projects from content/
This commit is contained in:
17
content.config.ts
Normal file
17
content.config.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { defineContentConfig, defineCollection } from "@nuxt/content";
|
||||
import { z } from "zod";
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
projects: defineCollection({
|
||||
type: "page",
|
||||
source: "projects/*.md",
|
||||
schema: z.object({
|
||||
description: z.string(),
|
||||
url: z.url().nullable(),
|
||||
thumbnail: z.string(),
|
||||
order: z.number(),
|
||||
}),
|
||||
}),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user