Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: mastodon support in social links #426

Open
acut3 opened this issue Nov 5, 2022 · 0 comments
Open

Feature request: mastodon support in social links #426

acut3 opened this issue Nov 5, 2022 · 0 comments

Comments

@acut3
Copy link

acut3 commented Nov 5, 2022

Description

With Mastodon gaining popularity, it would be great if support could be added.

This is especially important because Mastodon has this functionality where it can automatically "verify" profile links if they point back to your Mastodon profile.

Proposed change

Add the following block to _includes/author-links.html:

    {%- if _author.mastodon -%}
      <li title="{{ _locale_string_follow | replace: '[NAME]', 'Mastodon' }}">
        <a class="button button--circle mastodon-button" itemprop="sameAs" rel="me" href="https://{{ _author.mastodon }}" target="_blank">
          <div class="icon">{%- include svg/icon/social/mastodon.svg -%}</div>
        </a>
      </li>
    {%- endif -%}

Notice the rel="me" attribute, which is required for the account verification process.

In the _config.yml file, author.mastodon would be set to something like mastodon.social/@handle. The server's name (here, mastodon.social) has to be included.

The hard part is making a round Mastodon icon and the associated styles (which is what's preventing me from submitting a PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant