Skip to content

Commit

Permalink
create-blog-post.js: fix path to posts after the script move
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Jul 18, 2024
1 parent c651aea commit e216830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/create-blog-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const createBlogPost = (title) => {
const date = new Date().toISOString().split('T')[0];
const formattedTitle = title.replace(/\s+/g, '-').toLowerCase();
const filename = `${date}-${formattedTitle}.md`;
const filePath = path.join(__dirname, '_posts', filename);
const filePath = path.join(__dirname, '../_posts', filename);
const content = `---
layout: post
title: "${title}"
Expand Down

0 comments on commit e216830

Please sign in to comment.