unhead icon indicating copy to clipboard operation
unhead copied to clipboard

Automatic add of @ for twitter site on useSeoMeta

Open Barbapapazes opened this issue 1 year ago • 1 comments

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: [email protected] 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

  • [X] Would you be willing to help implement this feature?

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

Barbapapazes avatar Jan 23 '24 10:01 Barbapapazes

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 avatar Jan 23 '24 11:01 harlan-zw

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

harlan-zw avatar Sep 07 '24 07:09 harlan-zw