diff --git a/Gemfile b/Gemfile index 782a0c4..0cb2a8a 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 f65e8a8..3bbc437 100644 --- a/_config.yml +++ b/_config.yml @@ -70,8 +70,7 @@ og_image: # The site-wide (default for all links) Open Graph preview image github_username: # your GitHub user name 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 @@ -190,7 +189,7 @@ plugins: - jekyll-paginate-v2 - jekyll/scholar - jekyll-sitemap - - jekyll-target-blank + - jekyll-link-attributes - jekyll-twitter-plugin - jemoji @@ -264,6 +263,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 a600762..946120e 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 -%}