Skip to content

Commit

Permalink
Add rel=me to all social icon links.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarty committed Nov 12, 2024
1 parent ecf043f commit abce0c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/social-icons/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ type Props = {
const { kind, href, size = 8 } = Astro.props
const SocialSvg = components[kind]
const sizeClass = size === 8 ? 'size-8' : 'size-6'
let rel = 'noopener noreferrer'
if (kind === 'mastodon') {
rel += ' me'
}
let rel = 'noopener noreferrer me'
---

<a class="text-sm" target="_blank" {rel} {href}
Expand Down

0 comments on commit abce0c7

Please sign in to comment.