Skip to content

Commit 576e7b0

Browse files
authored
Added Mastodon to social (alshedivat#974)
1 parent 7172df0 commit 576e7b0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ og_image: # The site-wide (default for all links) Open Graph preview image
7070
github_username: # your GitHub user name
7171
gitlab_username: # your GitLab user name
7272
twitter_username: # your Twitter handle
73+
mastodon_username: # your mastodon username
74+
mastodon_instance: # your mastodon instance
7375
linkedin_username: # your LinkedIn user name
7476
scholar_userid: # your Google Scholar ID
7577
semanticscholar_id: # your Semantic Scholar ID

_includes/social.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
{%- if site.twitter_username -%}
2929
<a href="https://twitter.com/{{ site.twitter_username }}" title="Twitter"><i class="fab fa-twitter"></i></a>
3030
{% endif %}
31+
{%- if site.mastodon_instance and site.mastodon_username -%}
32+
<a rel="me" href="https://{{ site.mastodon_instance }}/@{{site.mastodon_username}}" title="Mastodon"><i class="fab fa-mastodon"></i></a>
33+
{% endif %}
3134
{%- if site.medium_username -%}
3235
<a href="https://medium.com/@{{ site.medium_username }}" title="Medium"><i class="fab fa-medium"></i></a>
3336
{% endif %}

0 commit comments

Comments
 (0)