From 3f4a3640c8dc157094083dcdbd2ce683a35af42d Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Wed, 13 Jul 2022 23:28:23 +0530 Subject: [PATCH] fix: only check for duplicate meta tags --- src/shared/shared.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/shared.ts b/src/shared/shared.ts index e50416298584..98be769167f6 100644 --- a/src/shared/shared.ts +++ b/src/shared/shared.ts @@ -144,6 +144,7 @@ function cleanRoute(siteData: SiteData, route: string): string { function hasTag(head: HeadConfig[], tag: HeadConfig) { const [tagType, tagAttrs] = tag + if (tagType !== 'meta') return false const keyAttr = Object.entries(tagAttrs)[0] // First key if (keyAttr == null) return false return head.some(