This commit is contained in:
2025-12-27 19:35:39 +08:00
parent 8121b74649
commit e2b1e21153
18 changed files with 470 additions and 96 deletions

View File

@@ -1,23 +1,27 @@
import { defineCollection, defineContentConfig } from "@nuxt/content";
import { asRobotsCollection } from "@nuxtjs/robots/content";
import { asSitemapCollection } from "@nuxtjs/sitemap/content";
import { asOgImageCollection } from "nuxt-og-image/content";
import { z } from "zod";
export default defineContentConfig({
collections: {
content: defineCollection({
...asRobotsCollection({
type: "page",
source: "**/*.md",
source: "blogs/**/*.md",
}),
...asSitemapCollection({
type: "page",
source: "**/*.md",
source: "blogs/**/*.md",
}),
...asOgImageCollection({
type: "page",
source: "**/*.md",
schema: z.object({
date: z.date(),
}),
indexes: [{ columns: ["date"] }],
}),
about: defineCollection({
type: "page",
source: "about.md",
}),
},
});