Add "me" keyword to certain links

This commit adds the "me" keyword to certain hyperlinks in the profile widget, which allows users of the Icarus theme to verify their identities (e.g., on Mastodon—see https://joinmastodon.org/verification).
pull/1288/head
Ben Zelnick 2024-04-20 17:59:36 -04:00 committed by GitHub
parent 866c59f846
commit 82d168496c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class Profile extends Component {
return <div class="level is-mobile is-multiline">
{links.filter(link => typeof link === 'object').map(link => {
return <a class="level-item button is-transparent is-marginless"
target="_blank" rel="noopener" title={link.name} href={link.url}>
target="_blank" rel="me noopener" title={link.name} href={link.url}>
{'icon' in link ? <i class={link.icon}></i> : link.name}
</a>;
})}
@ -73,7 +73,7 @@ class Profile extends Component {
</div>
</nav>
{followLink ? <div class="level">
<a class="level-item button is-primary is-rounded" href={followLink} target="_blank" rel="noopener">{followTitle}</a>
<a class="level-item button is-primary is-rounded" href={followLink} target="_blank" rel="me noopener">{followTitle}</a>
</div> : null}
{socialLinks ? this.renderSocialLinks(socialLinks) : null}
</div>