[ci] yarn format

This commit is contained in:
natemoo-re 2021-11-19 19:51:00 +00:00 committed by GitHub Actions
parent 9bc914f7a0
commit 447d2efaff

View file

@ -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>`;