Skip to content

Commit 4b2c128

Browse files
authored
Merge pull request #389 from mathmakgakpak/Fix-frontmatter-example
Fix frontmatter example
2 parents 8f01b16 + 580f27c commit 4b2c128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export async function getStaticProps() {
8484
title: Test
8585
---
8686
87-
Some **mdx** text, with a component <Test name={title}/>
87+
Some **mdx** text, with a component <Test name={frontmatter.title}/>
8888
`
8989

9090
const mdxSource = await serialize(source, { parseFrontmatter: true })

0 commit comments

Comments
 (0)