Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter meta tags #264

Open
TechAkayy opened this issue Sep 26, 2023 · 1 comment
Open

Twitter meta tags #264

TechAkayy opened this issue Sep 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@TechAkayy
Copy link
Collaborator

TechAkayy commented Sep 26, 2023

Twitter meta tags must be "name" instead of "property" in our docs - https://github.com/ElMassimo/iles/blob/main/docs/src/components/MetaTags.vue#L24

The image is not showing when sharing https://iles.pages.dev/ on twitter probably because of this. useSeoMeta can take care of adding the correct attribute-name.

  import { useSeoMeta } from 'unhead'
  useSeoMeta({
    // charset: 'utf-8',
    // author,
    // viewport: 'width=device-width, initial-scale=1',
    // keywords: route.meta.tags?.toString(),
    // title,
    description,
    ogTitle: title,
    ogDescription: description,
    ogType: 'website',
    ogImage: imgUrl,
    ogImageAlt: title,
    // og:image:width
    // og:image:height
    // og:image:alt
    // og:image: type
    // og:image: secure_url
    ogUrl: url,
    ogSiteName: title,
    // og: locale
    // og: type
    twitterTitle: title,
    twitterDescription: description,
    twitterImage: imgUrl,
    twitterImageAlt: title,
    twitterSite: '@vuedesigner',
    twitterCreator: '@techakayy',
    twitterCard: 'summary_large_image',
  })
@ElMassimo
Copy link
Owner

It used to display properly when I initially created the site, thanks for the heads up!

Now that @vueuse/head has been replaced by @unhead/vue, it makes sense to change the internal usages, as well as the docs site and examples.

@ElMassimo ElMassimo added the enhancement New feature or request label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants