Initial commit
This commit is contained in:
commit
92e96b9107
85 changed files with 24969 additions and 0 deletions
23
content.config.ts
Normal file
23
content.config.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { defineContentConfig, defineCollection } from "@nuxt/content";
|
||||
import { z } from "zod";
|
||||
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
articles: defineCollection({
|
||||
type: "data",
|
||||
source: "**/*.md",
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
description: z.string().optional(),
|
||||
category: z.string().optional(),
|
||||
tags: z.array(z.string()).optional(),
|
||||
author: z.string().optional(),
|
||||
contributors: z.array(z.string()).optional(),
|
||||
published: z.boolean().default(true),
|
||||
featured: z.boolean().default(false),
|
||||
accessLevel: z.string().optional(),
|
||||
publishedAt: z.string().optional(),
|
||||
}),
|
||||
}),
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue