Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ProchaLu committed Jan 8, 2025
1 parent 5658851 commit 5f8ca41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ export const getContentData = async (
const match = filenames.filter((filename) => {
const filePath = path.join(contentTypeDirectory, filename);
const fileContent = fs.readFileSync(filePath, 'utf-8');

const matterResult = matter(fileContent);
const { slug } = matterResult.data;

return slug === id;
});

Expand Down

0 comments on commit 5f8ca41

Please sign in to comment.