[ci] format
This commit is contained in:
parent
4c2ca5352d
commit
7eb54fcb4f
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ export function rehypeApplyFrontmatterExport(pageFrontmatter: Record<string, any
|
||||||
return function (tree: any, vfile: VFile) {
|
return function (tree: any, vfile: VFile) {
|
||||||
const { frontmatter: injectedFrontmatter } = safelyGetAstroData(vfile.data);
|
const { frontmatter: injectedFrontmatter } = safelyGetAstroData(vfile.data);
|
||||||
const frontmatter = { ...injectedFrontmatter, ...pageFrontmatter };
|
const frontmatter = { ...injectedFrontmatter, ...pageFrontmatter };
|
||||||
const exportNodes = [jsToTreeNode(`export const ${EXPORT_NAME} = ${JSON.stringify(frontmatter)};`)];
|
const exportNodes = [
|
||||||
|
jsToTreeNode(`export const ${EXPORT_NAME} = ${JSON.stringify(frontmatter)};`),
|
||||||
|
];
|
||||||
tree.children = exportNodes.concat(tree.children);
|
tree.children = exportNodes.concat(tree.children);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue