Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 417 Bytes

metal-bugs-drive.md

File metadata and controls

17 lines (13 loc) · 417 Bytes
@astrojs/markdoc astro
minor
patch

Remove the auto-generated $entry variable for Markdoc entries. To access frontmatter as a variable, you can pass entry.data as a prop where you render your content:

---
import { getEntry } from 'astro:content';

const entry = await getEntry('docs', 'why-markdoc');
const { Content } = await entry.render();
---

<Content frontmatter={entry.data} />