feat: "file" + "url" top-level layout props

This commit is contained in:
bholmesdev 2022-08-15 10:34:28 -04:00
parent e120548fd8
commit 3c35fef157
2 changed files with 4 additions and 0 deletions

View file

@ -107,6 +107,8 @@ export default function markdown({ config, logging }: AstroPluginOptions): Plugi
return ${
layout
? `h(Layout, {
file,
url,
content,
frontmatter: content,
headings: getHeadings(),

View file

@ -45,6 +45,8 @@ export function rehypeApplyFrontmatterExport(pageFrontmatter: Record<string, any
}
});
return layoutJsx(Layout, {
file,
url,
content,
frontmatter: content,
headings: getHeadings(),