Skip to content

Commit 357f6e9

Browse files
authored
Add backlink to verify mastodon (alshedivat#978)
1 parent f58ac5b commit 357f6e9

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ group :jekyll_plugins do
1010
gem 'jekyll-paginate-v2'
1111
gem 'jekyll-scholar'
1212
gem 'jekyll-sitemap'
13-
gem 'jekyll-target-blank'
13+
gem 'jekyll-link-attributes'
1414
gem 'jekyll-twitter-plugin'
1515
gem 'jemoji'
1616
gem 'mini_racer'

_config.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ 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
73+
mastodon_username: # your mastodon instance+username in the format instance.tld/@username
7574
linkedin_username: # your LinkedIn user name
7675
scholar_userid: # your Google Scholar ID
7776
semanticscholar_id: # your Semantic Scholar ID
@@ -190,7 +189,7 @@ plugins:
190189
- jekyll-paginate-v2
191190
- jekyll/scholar
192191
- jekyll-sitemap
193-
- jekyll-target-blank
192+
- jekyll-link-attributes
194193
- jekyll-twitter-plugin
195194
- jemoji
196195

@@ -264,6 +263,18 @@ max_author_limit: 3 # leave blank to always show all authors
264263
more_authors_animation_delay: 10 # more authors are revealed on click using animation; smaller delay means faster animation
265264

266265

266+
# -----------------------------------------------------------------------------
267+
# Jekyll Link Attributes
268+
# -----------------------------------------------------------------------------
269+
270+
# These are the defaults
271+
external_links:
272+
enabled: true
273+
rel: external nofollow noopener
274+
target: _blank
275+
exclude:
276+
277+
267278
# -----------------------------------------------------------------------------
268279
# Responsive WebP Images
269280
# -----------------------------------------------------------------------------

_includes/social.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
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>
31+
{%- if site.mastodon_username -%}
32+
<a rel="me" href="https://{{ site.mastodon_username }}" title="Mastodon"><i class="fab fa-mastodon"></i></a>
3333
{% endif %}
3434
{%- if site.medium_username -%}
3535
<a href="https://medium.com/@{{ site.medium_username }}" title="Medium"><i class="fab fa-medium"></i></a>

0 commit comments

Comments
 (0)