ElMassimo / ElMassimo/iles

Twitter meta tags

Open
#264 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
1.2k
Forks
36
PR merge metrics
No merged PRs in 30d

Description

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',
})
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.