Skip to content

Commit 1ef7a18

Browse files
authored
fix: only check for duplicate meta tags (#977)
#975 (comment)
1 parent f7e9cfe commit 1ef7a18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/shared/shared.ts

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ function cleanRoute(siteData: SiteData, route: string): string {
144144

145145
function hasTag(head: HeadConfig[], tag: HeadConfig) {
146146
const [tagType, tagAttrs] = tag
147+
if (tagType !== 'meta') return false
147148
const keyAttr = Object.entries(tagAttrs)[0] // First key
148149
if (keyAttr == null) return false
149150
return head.some(

0 commit comments

Comments
 (0)