[ci] yarn format
This commit is contained in:
parent
9bc914f7a0
commit
447d2efaff
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ ${setup}
|
|||
const $$content = ${JSON.stringify(content)}
|
||||
---`;
|
||||
const imports = `${layout ? `import Layout from '${layout}';` : ''}
|
||||
${setup}`.trim()
|
||||
${setup}`.trim();
|
||||
// If the user imported "Layout", wrap the content in a Layout
|
||||
if (/\bLayout\b/.test(imports)) {
|
||||
astroResult = `${prelude}\n<Layout content={$$content}>\n\n${astroResult}\n\n</Layout>`;
|
||||
|
|
Loading…
Reference in a new issue