Skip to content

Commit

Permalink
fix: check meta tag "value" as well as "content" attributes
Browse files Browse the repository at this point in the history
BREAKING CHANGE

fixes #88
  • Loading branch information
jacktuck committed Mar 4, 2022
1 parent fbc26f0 commit 2223e35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Expand Up @@ -277,9 +277,11 @@ function getMetadata (ctx, opts: Opts) {

pair = ['keywords', keywords]
} else if (attribs.property && keys.includes(attribs.property)) {
pair = [attribs.property, attribs.content]
const content = attribs.content || attribs.value
pair = [attribs.property, content]
} else if (attribs.name && keys.includes(attribs.name)) {
pair = [attribs.name, attribs.content]
const content = attribs.content || attribs.value
pair = [attribs.name, content]
}
}

Expand Down

0 comments on commit 2223e35

Please sign in to comment.