unjs / unhead

Unhead is the any-framework document head manager built for performance and delightful developer experience.
https://unhead.unjs.io
MIT License
591 stars 40 forks source link

Automatic add of @ for twitter site on useSeoMeta #309

Closed Barbapapazes closed 1 week ago

Barbapapazes commented 7 months ago

Describe the feature

Environment Operating System: Linux Node Version: v20.11.0 Nuxt Version: 3.9.3 CLI Version: 3.10.0 Nitro Version: 2.8.1 Package Manager: pnpm@8.6.12 Builder: - User Config: - Runtime Modules: - Build Modules: - Reproduction /

Describe the bug Hello,

Could be a great addition to automatically add @ to the beginning of the twitter site. Otherwise, a type could alert dev that he should add one.

For reference: developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started

Additional context No response

Logs No response

Additional information

https://github.com/nuxt/nuxt/issues/25382

harlan-zw commented 7 months ago

I think it's a good idea :)

In terms of implementation though, I think adding an Unhead plugin for this is a bit much.

If we wanted to solve this in Nuxt a good place to handle it would be in https://github.com/harlan-zw/nuxt-seo-experiments, having it as a standalone plugin then would be fine.

Otherwise, I was already considering working on a development Unhead plugin that would provide warnings when using tags incorrectly, this could be one of the rules.

harlan-zw commented 1 week ago

Closing in favour of https://github.com/unjs/unhead/issues/394