Access Frontmatter Values From a Markdown Page in Astro
24 February 2022
Sometimes, you want to access your frontmatter right from the component inside a Markdown page. Say, you have this in your frontmatter:
md
---title: Post Titledescription: Post description.---
Here’s how you can access it:
mdx
<Heading title={frontmatter.title} />