nuxt-themes / alpine

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

feat: support rel attribute for social links #129

Closed jdebarochez closed 1 year ago

jdebarochez commented 1 year ago

Following issue #128, I'm proposing this implementation, up for debate. I was not finding a cleaner way to introduce this without a method.

Here's the generated output, with the me added:

<a href="https://m.webtoo.ls/@nuxt" rel="noopener noreferrer me" target="_blank" title="Mastodon" aria-label="Mastodon" data-v-c22758af="">{{ icon }}</a>

I've tested when socials has a rel property or not. Do you see other test to perform?

codesandbox[bot] commented 1 year ago

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

nuxt-studio[bot] commented 1 year ago

Live Preview ready!

Name Edit Preview Latest Commit
Alpine Edit on Studio ↗︎ View Live Preview df5c4a9d4ee5456c94b7d7a789e417c3c084baa1
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
alpine ✅ Ready (Inspect) Visit Preview May 16, 2023 3:16pm