mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] yarn format
This commit is contained in:
parent
9bc914f7a0
commit
447d2efaff
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ ${components ? `import * from '${components}';` : ''}
|
||||||
${setup}
|
${setup}
|
||||||
const $$content = ${JSON.stringify(content)}
|
const $$content = ${JSON.stringify(content)}
|
||||||
---`;
|
---`;
|
||||||
const imports = `${layout ? `import Layout from '${layout}';` : ''}
|
const imports = `${layout ? `import Layout from '${layout}';` : ''}
|
||||||
${setup}`.trim()
|
${setup}`.trim();
|
||||||
// If the user imported "Layout", wrap the content in a Layout
|
// If the user imported "Layout", wrap the content in a Layout
|
||||||
if (/\bLayout\b/.test(imports)) {
|
if (/\bLayout\b/.test(imports)) {
|
||||||
astroResult = `${prelude}\n<Layout content={$$content}>\n\n${astroResult}\n\n</Layout>`;
|
astroResult = `${prelude}\n<Layout content={$$content}>\n\n${astroResult}\n\n</Layout>`;
|
||||||
|
|
Loading…
Reference in a new issue