diff --git a/.tina/config.ts b/.tina/config.ts index e2616fbd6..cff1c70a3 100644 --- a/.tina/config.ts +++ b/.tina/config.ts @@ -22,7 +22,7 @@ export default defineConfig({ { label: 'Blog Posts', name: 'posts', - path: 'posts', + path: 'content/posts', format: 'mdx', fields: [ { diff --git a/posts/test-article-2.mdx b/content/posts/test-article-2.mdx similarity index 100% rename from posts/test-article-2.mdx rename to content/posts/test-article-2.mdx diff --git a/posts/test-article-3.mdx b/content/posts/test-article-3.mdx similarity index 100% rename from posts/test-article-3.mdx rename to content/posts/test-article-3.mdx diff --git a/posts/test-article-4.mdx b/content/posts/test-article-4.mdx similarity index 100% rename from posts/test-article-4.mdx rename to content/posts/test-article-4.mdx diff --git a/posts/test-article-5.mdx b/content/posts/test-article-5.mdx similarity index 100% rename from posts/test-article-5.mdx rename to content/posts/test-article-5.mdx diff --git a/posts/test-article-6.mdx b/content/posts/test-article-6.mdx similarity index 100% rename from posts/test-article-6.mdx rename to content/posts/test-article-6.mdx diff --git a/posts/test-article.mdx b/content/posts/test-article.mdx similarity index 100% rename from posts/test-article.mdx rename to content/posts/test-article.mdx diff --git a/utils/postsFetcher.ts b/utils/postsFetcher.ts index 469be54fd..893772494 100644 --- a/utils/postsFetcher.ts +++ b/utils/postsFetcher.ts @@ -25,5 +25,5 @@ export async function getSinglePost(slug: string): Promise { export function getPostsDirectory() { let basePath = process.cwd(); - return path.join(basePath, 'posts'); + return path.join(basePath, 'content/posts'); }