mirror of
https://github.com/spark-store-project/spark-store-abyss
synced 2025-12-17 12:51:38 +08:00
feat: 引入 @nuxt/content
This commit is contained in:
13
content.config.ts
Normal file
13
content.config.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { defineCollection, defineContentConfig, z } from "@nuxt/content";
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
download: defineCollection({
|
||||
source: "download/*.md",
|
||||
type: "page",
|
||||
schema: z.object({
|
||||
rawbody: z.string(),
|
||||
}),
|
||||
}),
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user