We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1a62e1 commit fa469fdCopy full SHA for fa469fd
src/node/build/render.ts
@@ -53,6 +53,10 @@ export async function renderPage(
53
})
54
.join('\n ')
55
56
+ const stylesheetLink = cssChunk
57
+ ? `<link rel="stylesheet" href="${siteData.base}${cssChunk.fileName}">`
58
+ : ''
59
+
60
const html = `
61
<!DOCTYPE html>
62
<html lang="${siteData.lang}">
@@ -65,7 +69,7 @@ export async function renderPage(
65
69
<meta name="description" content="${
66
70
pageData.description || siteData.description
67
71
}">
68
- <link rel="stylesheet" href="${siteData.base}${cssChunk.fileName}">
72
+ ${stylesheetLink}
73
${preloadLinks}
74
${renderHead(siteData.head)}
75
${renderHead(frontmatterHead && filterOutHeadDescription(frontmatterHead))}
0 commit comments