|
|
@ -67,7 +67,7 @@ export async function renderPage(
|
|
|
|
<link rel="stylesheet" href="${siteData.base}${cssChunk.fileName}">
|
|
|
|
<link rel="stylesheet" href="${siteData.base}${cssChunk.fileName}">
|
|
|
|
${preloadLinks}
|
|
|
|
${preloadLinks}
|
|
|
|
${renderHead(siteData.head)}
|
|
|
|
${renderHead(siteData.head)}
|
|
|
|
${renderHead(frontmatterHead && rejectHeadDescription(frontmatterHead))}
|
|
|
|
${renderHead(frontmatterHead && filterOutHeadDescription(frontmatterHead))}
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<body>
|
|
|
|
<div id="app">${content}</div>
|
|
|
|
<div id="app">${content}</div>
|
|
|
@ -130,6 +130,6 @@ function isMetaDescription(headConfig: HeadConfig) {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function rejectHeadDescription(head: HeadConfig[]) {
|
|
|
|
function filterOutHeadDescription(head: HeadConfig[]) {
|
|
|
|
return head.filter((h: HeadConfig) => !isMetaDescription(h))
|
|
|
|
return head.filter((h: HeadConfig) => !isMetaDescription(h))
|
|
|
|
}
|
|
|
|
}
|
|
|
|