diff --git a/src/node/build/render.ts b/src/node/build/render.ts
index a3079903..8a283b90 100644
--- a/src/node/build/render.ts
+++ b/src/node/build/render.ts
@@ -158,7 +158,11 @@ export async function renderPage(
: ''
}
${title}
-
+ ${
+ isDescriptionOverridden(head)
+ ? ''
+ : ``
+ }
${stylesheetLink}
${metadataScript.inHead ? metadataScript.html : ''}
${
@@ -258,6 +262,12 @@ function filterOutHeadDescription(head: HeadConfig[] = []) {
})
}
+function isDescriptionOverridden(head: HeadConfig[] = []) {
+ return head.some(([type, attrs]) => {
+ return type === 'meta' && attrs?.name === 'description'
+ })
+}
+
function isMetaViewportOverridden(head: HeadConfig[] = []) {
return head.some(([type, attrs]) => {
return type === 'meta' && attrs?.name === 'viewport'