rename posts to blog

This commit is contained in:
somrat sorkar
2023-05-22 13:19:59 +06:00
parent 38dad16448
commit 53ccf1cf29
12 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import { defineCollection, z } from "astro:content";
// Post collection schema
const postsCollection = defineCollection({
const blogCollection = defineCollection({
schema: z.object({
title: z.string(),
meta_title: z.string().optional(),
@@ -47,7 +47,7 @@ const pagesCollection = defineCollection({
// Export collections
export const collections = {
posts: postsCollection,
blog: blogCollection,
authors: authorsCollection,
pages: pagesCollection,
};