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
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "astroplate",
"version": "1.1.5",
"version": "1.2.0",
"description": "Astro and Tailwindcss boilerplate",
"author": "zeon.studio",
"license": "MIT",
+1 -1
View File
@@ -19,7 +19,7 @@
"default_theme": "system",
"pagination": 2,
"summary_length": 200,
"blog_folder": "posts"
"blog_folder": "blog"
},
"params": {
+1 -1
View File
@@ -23,7 +23,7 @@
},
{
"name": "Blog",
"url": "/posts"
"url": "/blog"
},
{
"name": "Authors",
+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,
};