Hi,
At the moment, it seems that the plugin just inject the meta tags in the <head>
without checking if one already exists.
For example, if my index.html contains this:
<meta property="og:title" content="My website">
And I add this in my template:
<template>
<Head>
<meta property="og:title" content="My website" />
</Head>
</template>
The output will be:
<meta property="og:title" content="My website">
<meta property="og:title" content="My website">
As a possible solution, ktquez version had solved this by adding an id
attribute and checking for it before so it can change the value or create it if needed.
meta: [
{ name: 'description', content: 'My description', id: 'desc' }
]
A similar approach would be good enough to me (though it would be possible to simply check if there is a matching tag with same attributes and values).
Thanks!
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too