i am using vue-meta 2.4.0 my code as:
metaInfo() {
return {
htmlAttrs: { lang: 'en', amp: true },
title: "page title",
description : "Page description",
meta: [
//twitter card
{ vmid: 'twitter:title', name: 'twitter:title', content: 'twitter title'},
{ vmid: 'twitter:description', name: 'twitter:description', content: 'twitter description'},
// google
{vmid: 'og:title', property: "og:title",content: "og ttitle",},
{vmid: "og:description", property: "og:description",content:"og description",},
]
}
}
as I have added name: 'twitter:title' still it is showing name="meta" also it is showing name="meta" for all meta tags.
Twitter required meat tasg as:
<meta name="twitter:title" content="twitter title">
<meta name='twitter:description' content='twitter description'>
In vue js 3 you should use the vue3-meta or alpha version. Then do the following
if you want to use meta name then change the config in main.js
and in your component use the meta name below