From bd84338700962490bfa6246b09ec6256c01469ed 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 2dd043f8a245..f8f62ad9d600 100644 --- a/_config.yml +++ b/_config.yml @@ -69,8 +69,7 @@ og_image: # The site-wide (default for all links) Open Graph preview image github_username: chowland # your GitHub user name gitlab_username: # your GitLab user name twitter_username: chowlandGFD # 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: cjhowland # your LinkedIn user name scholar_userid: pf4KNaQAAAAJ # your Google Scholar ID semanticscholar_id: # your Semantic Scholar ID @@ -189,7 +188,7 @@ plugins: - jekyll-paginate-v2 - jekyll/scholar - jekyll-sitemap - - jekyll-target-blank + - jekyll-link-attributes - jekyll-twitter-plugin - jemoji @@ -263,6 +262,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 -%}