Skip to content

Commit

Permalink
refactor: move blog posts to content folder
Browse files Browse the repository at this point in the history
  • Loading branch information
furkan-guvenc committed Dec 31, 2024
1 parent ba9d6eb commit dee13f3
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .tina/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default defineConfig({
{
label: 'Blog Posts',
name: 'posts',
path: 'posts',
path: 'content/posts',
format: 'mdx',
fields: [
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion utils/postsFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ export async function getSinglePost(slug: string): Promise<SingleArticle> {

export function getPostsDirectory() {
let basePath = process.cwd();
return path.join(basePath, 'posts');
return path.join(basePath, 'content/posts');
}

0 comments on commit dee13f3

Please sign in to comment.