Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ben-rogerson/nuxt-seomatic-meta
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-rogerson committed Nov 1, 2020
2 parents f2776dc + e4f683a commit 9b5fac0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,13 @@ export default ({ app }) => {
// Flatten metaTagContainer values into string
const meta = metaTagContainer
? Object.values(metaTagContainer).reduce(
(flat, next) => flat.concat(next),
{
if (next.name === 'description') {
// Override description tag with updated description
next.hid = 'description';
}
return flat.concat(next);
},
[],
)
: null
Expand All @@ -111,7 +117,7 @@ export default ({ app }) => {
const jsonLd = metaJsonLdContainer
? Object.entries(metaJsonLdContainer).map(value => ({
type: 'application/ld+json',
innerHTML: JSON.stringify(value),
innerHTML: JSON.stringify(value[1]),
}))
: []

Expand Down

0 comments on commit 9b5fac0

Please sign in to comment.