From 1ef7a1857c2a8e2abc7c1859cd54504c144eab3b Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Wed, 13 Jul 2022 23:31:15 +0530 Subject: [PATCH] fix: only check for duplicate meta tags (#977) https://github.com/vuejs/vitepress/issues/975#issuecomment-1183507200 --- src/shared/shared.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/shared.ts b/src/shared/shared.ts index e5041629858..98be769167f 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(