vue-meta icon indicating copy to clipboard operation
vue-meta copied to clipboard

How to add twitter:card to the meta using vue-meta

Open moda20 opened this issue 1 year ago • 5 comments

i am trying to add a simple twitter card and title as meta tags to my vue3 pages, the tags are different between the pages, i can't seem to find any documentation that can show exactly how to do that, everything is super complicated.

i tried adding meta attribute with the desired attrobutes to the vue-router routes and return it in metaInfo function but that didn't work.

moda20 avatar Jun 21 '24 12:06 moda20

Hi, bro, have you solved this problem?

amshiro avatar Jul 10 '24 09:07 amshiro

@amshiro no, i dropped the package and added the metatags to the index.html directly. there is head.js lib that is a better alternative for this one

moda20 avatar Jul 10 '24 09:07 moda20

@amshiro no, i dropped the package and added the metatags to the index.html directly. there is head.js lib that is a better alternative for this one

I haven't implemented it either. I'll try head.js. Thanks for your suggestion.

amshiro avatar Jul 10 '24 11:07 amshiro

@amshiro no, i dropped the package and added the metatags to the index.html directly. there is head.js lib that is a better alternative for this one

I haven't implemented it either. I'll try head.js. Thanks for your suggestion.

Bro, would you like to share the core usage of head.js? 😊🙏😊

amshiro avatar Jul 10 '24 12:07 amshiro

Wouldn't <teleport to="head"> be an alternative to this problem?

mateusfmello avatar Aug 17 '24 18:08 mateusfmello