diff --git a/package.json b/package.json index 41a1123..0789182 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astroplate", - "version": "1.1.5", + "version": "1.2.0", "description": "Astro and Tailwindcss boilerplate", "author": "zeon.studio", "license": "MIT", diff --git a/src/config/config.json b/src/config/config.json index 94adc0f..683fe50 100755 --- a/src/config/config.json +++ b/src/config/config.json @@ -19,7 +19,7 @@ "default_theme": "system", "pagination": 2, "summary_length": 200, - "blog_folder": "posts" + "blog_folder": "blog" }, "params": { diff --git a/src/config/menu.json b/src/config/menu.json index 7fe7d5c..b99f31c 100755 --- a/src/config/menu.json +++ b/src/config/menu.json @@ -23,7 +23,7 @@ }, { "name": "Blog", - "url": "/posts" + "url": "/blog" }, { "name": "Authors", diff --git a/src/content/posts/-index.md b/src/content/blog/-index.md similarity index 100% rename from src/content/posts/-index.md rename to src/content/blog/-index.md diff --git a/src/content/posts/post-1.md b/src/content/blog/post-1.md similarity index 100% rename from src/content/posts/post-1.md rename to src/content/blog/post-1.md diff --git a/src/content/posts/post-2.md b/src/content/blog/post-2.md similarity index 100% rename from src/content/posts/post-2.md rename to src/content/blog/post-2.md diff --git a/src/content/posts/post-3.md b/src/content/blog/post-3.md similarity index 100% rename from src/content/posts/post-3.md rename to src/content/blog/post-3.md diff --git a/src/content/posts/post-4.md b/src/content/blog/post-4.md similarity index 100% rename from src/content/posts/post-4.md rename to src/content/blog/post-4.md diff --git a/src/content/config.ts b/src/content/config.ts index dba4975..e7357b8 100755 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -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, }; diff --git a/src/pages/posts/[single].astro b/src/pages/blog/[single].astro similarity index 100% rename from src/pages/posts/[single].astro rename to src/pages/blog/[single].astro diff --git a/src/pages/posts/index.astro b/src/pages/blog/index.astro similarity index 100% rename from src/pages/posts/index.astro rename to src/pages/blog/index.astro diff --git a/src/pages/posts/page/[slug].astro b/src/pages/blog/page/[slug].astro similarity index 100% rename from src/pages/posts/page/[slug].astro rename to src/pages/blog/page/[slug].astro