Skip to content

Commit

Permalink
fix: only check for duplicate meta tags (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jul 13, 2022
1 parent f7e9cfe commit 1ef7a18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/shared.ts
Expand Up @@ -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(
Expand Down

0 comments on commit 1ef7a18

Please sign in to comment.