nuxt-themes / alpine

The minimalist blog theme, powered by Nuxt & Markdown.
https://alpine.nuxt.space
MIT License
302 stars 55 forks source link

[feature] Support Mastodon's verification link #128

Closed jdebarochez closed 1 year ago

jdebarochez commented 1 year ago

Hello everyone :wave:

Great job with this minimalist generator. I'm creating my first blog with it and so far, it's super straightforward and clear. 🙌

Would it be possible to support the verification for Mastodon (cf doc)? It expects a link to user's profile with rel="me" HTML attribute, or via a link tag in header. As I didn't see so far how to add the latter with alpine, I would suggest to add a property for socials:

    socials: {
      mastodon: {
        icon: "simple-icons:mastodon",
        label: "mastodon",
        href: "https://mastodon.social/@username",
        rel: "me",
      },

It would generate this output with the additional me in rel:

<a href="https://mastodon.social/@username" rel="me noopener noreferrer" target="_blank" title="mastodon" aria-label="mastodon" data-v-7a4dc737=""> {{ icon }} </a>

What do you think?

I would love to contribute. I'd update this part and add appropriate documentation.

Tahul commented 1 year ago

This has been fixed in #129 :)