From 8740b810fdbacfe96f4833e5f8e52619d60902df Mon Sep 17 00:00:00 2001 From: bruno vianna Date: Tue, 15 Nov 2022 14:06:51 +0100 Subject: [PATCH] Add backlink to verify mastodon (#978) --- Gemfile | 2 +- _config.yml | 17 ++++++++++++++--- _includes/social.html | 4 ++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 782a0c4a87ca..0cb2a8af6fc5 100644 --- a/Gemfile +++ b/Gemfile @@ -10,7 +10,7 @@ group :jekyll_plugins do gem 'jekyll-paginate-v2' gem 'jekyll-scholar' gem 'jekyll-sitemap' - gem 'jekyll-target-blank' + gem 'jekyll-link-attributes' gem 'jekyll-twitter-plugin' gem 'jemoji' gem 'mini_racer' diff --git a/_config.yml b/_config.yml index cde87319c29b..54633fff3155 100644 --- a/_config.yml +++ b/_config.yml @@ -68,8 +68,7 @@ og_image: # The site-wide (default for all links) Open Graph preview image github_username: folguinch gitlab_username: # your GitLab user name twitter_username: # your Twitter handle -mastodon_username: # your mastodon username -mastodon_instance: # your mastodon instance +mastodon_username: # your mastodon instance+username in the format instance.tld/@username linkedin_username: # your LinkedIn user name scholar_userid: # your Google Scholar ID semanticscholar_id: # your Semantic Scholar ID @@ -200,7 +199,7 @@ plugins: - jekyll-paginate-v2 - jekyll/scholar - jekyll-sitemap - - jekyll-target-blank + - jekyll-link-attributes - jekyll-twitter-plugin - jemoji @@ -274,6 +273,18 @@ max_author_limit: 3 # leave blank to always show all authors more_authors_animation_delay: 10 # more authors are revealed on click using animation; smaller delay means faster animation +# ----------------------------------------------------------------------------- +# Jekyll Link Attributes +# ----------------------------------------------------------------------------- + +# These are the defaults +external_links: + enabled: true + rel: external nofollow noopener + target: _blank + exclude: + + # ----------------------------------------------------------------------------- # Responsive WebP Images # ----------------------------------------------------------------------------- diff --git a/_includes/social.html b/_includes/social.html index a600762b5ebe..946120ebbe22 100644 --- a/_includes/social.html +++ b/_includes/social.html @@ -28,8 +28,8 @@ {%- if site.twitter_username -%} {% endif %} - {%- if site.mastodon_instance and site.mastodon_username -%} - + {%- if site.mastodon_username -%} + {% endif %} {%- if site.medium_username -%}