feat(projects): load projects from content/

This commit is contained in:
2025-11-19 12:48:45 +01:00
parent 23a395a9ed
commit a664b2660e
26 changed files with 2692 additions and 83 deletions

17
content.config.ts Normal file
View 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(),
}),
}),
},
});