Skip to content

Commit

Permalink
fix(mdx-front matter): disable next-mdx-remote built-in front matter
Browse files Browse the repository at this point in the history
issue #614
close #670
  • Loading branch information
sabertazimi committed Apr 26, 2022
1 parent 22b9fc9 commit 057433f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/getPostsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function generatePostData(filePath: string): Promise<Post> {
const updateTime = execSync(
`git log -1 --pretty=format:%aI ${filePath}`
).toString();
const source = await serialize(content);
const source = await serialize(content, { parseFrontmatter: false });

return {
...fields,
Expand Down

0 comments on commit 057433f

Please sign in to comment.