mirror of
https://github.com/10h30/astroplate.git
synced 2026-06-05 15:08:00 +09:00
rename posts to blog
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "astroplate",
|
||||
"version": "1.1.5",
|
||||
"version": "1.2.0",
|
||||
"description": "Astro and Tailwindcss boilerplate",
|
||||
"author": "zeon.studio",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"default_theme": "system",
|
||||
"pagination": 2,
|
||||
"summary_length": 200,
|
||||
"blog_folder": "posts"
|
||||
"blog_folder": "blog"
|
||||
},
|
||||
|
||||
"params": {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
{
|
||||
"name": "Blog",
|
||||
"url": "/posts"
|
||||
"url": "/blog"
|
||||
},
|
||||
{
|
||||
"name": "Authors",
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user