mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
refactor: rename blogCollection to blog
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
import { defineCollection } from "astro:content";
|
import { defineCollection } from "astro:content";
|
||||||
import { blogSchema } from "./_schemas";
|
import { blogSchema } from "./_schemas";
|
||||||
|
|
||||||
const blogCollection = defineCollection({
|
const blog = defineCollection({
|
||||||
schema: blogSchema,
|
schema: blogSchema,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const collections = {
|
export const collections = { blog };
|
||||||
blog: blogCollection,
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user