chore: 初始化项目仓库

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 21:27:39 +08:00
commit b7addb5c7a
50 changed files with 15964 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { defineCollection, defineContentConfig, z } from '@nuxt/content'
export default defineContentConfig({
collections: {
posts: defineCollection({
type: 'page',
source: '**/*.md',
schema: z.object({
title: z.string(),
published: z.string(),
description: z.string().optional(),
image: z.string().optional(),
draft: z.boolean().optional(),
pinned: z.boolean().optional(),
tags: z.array(z.string()).optional(),
author: z.string().optional(),
}),
}),
},
})