update
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { defineCollection, defineContentConfig } from "@nuxt/content";
|
||||
import { asSeoCollection } from "@nuxtjs/seo/content";
|
||||
import { asRobotsCollection } from "@nuxtjs/robots/content";
|
||||
import { asSitemapCollection } from "@nuxtjs/sitemap/content";
|
||||
import { z } from "zod";
|
||||
@@ -14,10 +15,21 @@ export default defineContentConfig({
|
||||
type: "page",
|
||||
source: "blogs/**/*.md",
|
||||
}),
|
||||
schema: z.object({
|
||||
date: z.date(),
|
||||
...asSeoCollection({
|
||||
type: "page",
|
||||
source: "blogs/**/*.md",
|
||||
}),
|
||||
indexes: [{ columns: ["date"] }],
|
||||
schema: z.object({
|
||||
published: z.boolean(),
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
date: z.date(),
|
||||
categories: z.array(z.string()),
|
||||
tags: z.array(z.string()),
|
||||
image: z.string(),
|
||||
alt: z.string(),
|
||||
}),
|
||||
// indexes: [{ columns: ["date"] }],
|
||||
}),
|
||||
about: defineCollection({
|
||||
type: "page",
|
||||
|
||||
Reference in New Issue
Block a user