diff --git a/lib/plugin.js b/lib/plugin.js index ed1baad..7cf83a9 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -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 @@ -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]), })) : []