diff --git a/src/node/build/render.ts b/src/node/build/render.ts
index 8818a5e1..cd877b08 100644
--- a/src/node/build/render.ts
+++ b/src/node/build/render.ts
@@ -148,37 +148,34 @@ export async function renderPage(
}
}
- const html = `
-
-
-
- ${
- isMetaViewportOverridden(head)
- ? ''
- : ''
- }
- ${title}
- ${
- isDescriptionOverridden(head)
- ? ''
- : ``
- }
-
- ${stylesheetLink}
- ${metadataScript.inHead ? metadataScript.html : ''}
- ${
- appChunk
- ? ``
- : ''
- }
- ${await renderHead(head)}
-
- ${teleports?.body || ''}
- ${content}
- ${metadataScript.inHead ? '' : metadataScript.html}
- ${inlinedScript}
-
-`
+ const html = [
+ ``,
+ ``,
+ ``,
+ ``,
+ isMetaViewportOverridden(head)
+ ? ''
+ : '',
+ `${title}`,
+ isDescriptionOverridden(head)
+ ? ''
+ : ``,
+ ``,
+ stylesheetLink,
+ metadataScript.inHead ? metadataScript.html : '',
+ appChunk
+ ? ``
+ : '',
+ await renderHead(head),
+ ``,
+ ``,
+ teleports?.body || '',
+ `${content}
`,
+ metadataScript.inHead ? '' : metadataScript.html,
+ inlinedScript,
+ ``,
+ ``
+ ].join('')
const htmlFileName = path.join(config.outDir, page.replace(/\.md$/, '.html'))
await fs.ensureDir(path.dirname(htmlFileName))