feat: "file" + "url" top-level layout props
This commit is contained in:
parent
e120548fd8
commit
3c35fef157
2 changed files with 4 additions and 0 deletions
|
@ -107,6 +107,8 @@ export default function markdown({ config, logging }: AstroPluginOptions): Plugi
|
|||
return ${
|
||||
layout
|
||||
? `h(Layout, {
|
||||
file,
|
||||
url,
|
||||
content,
|
||||
frontmatter: content,
|
||||
headings: getHeadings(),
|
||||
|
|
|
@ -45,6 +45,8 @@ export function rehypeApplyFrontmatterExport(pageFrontmatter: Record<string, any
|
|||
}
|
||||
});
|
||||
return layoutJsx(Layout, {
|
||||
file,
|
||||
url,
|
||||
content,
|
||||
frontmatter: content,
|
||||
headings: getHeadings(),
|
||||
|
|
Loading…
Add table
Reference in a new issue