From b85eded1ec48bb6c8285fa961cb4883816ffbc12 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 10 Nov 2024 21:06:37 -0800 Subject: [PATCH] Make external links open in new tab Also fix link that had invalid character --- Gemfile | 3 +++ Gemfile.lock | 4 ++++ _config.yml | 1 + _recipes/sauteed-brussels-sprouts.md | 2 +- 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 3ed33f08c9e..191e1c26249 100644 --- a/Gemfile +++ b/Gemfile @@ -15,6 +15,9 @@ platforms :mingw, :x64_mingw, :mswin, :jruby do gem "tzinfo-data" end +# Make external links open in new tab +gem "jekyll-target-blank", "~> 2.0" + # Performance-booster for watching directories on Windows gem "wdm", "~> 0.2.0", :install_if => Gem.win_platform? diff --git a/Gemfile.lock b/Gemfile.lock index aceaf06c13d..8e77be2f22b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -96,6 +96,9 @@ GEM jekyll (>= 3.8, < 5.0) jekyll-sitemap (1.4.0) jekyll (>= 3.7, < 5.0) + jekyll-target-blank (2.0.2) + jekyll (>= 3.0, < 5.0) + nokogiri (~> 1.10) jekyll-watch (2.2.1) listen (~> 3.0) json (2.7.4) @@ -166,6 +169,7 @@ DEPENDENCIES faraday-retry (~> 2.2) html-proofer (~> 5.0) jekyll-github-metadata + jekyll-target-blank (~> 2.0) jekyll-theme-chirpy! tzinfo (>= 1, < 3) tzinfo-data diff --git a/_config.yml b/_config.yml index 6023645146f..56517371ff1 100644 --- a/_config.yml +++ b/_config.yml @@ -192,3 +192,4 @@ githup_repos: plugins: - "jekyll-github-metadata" + - "jekyll-target-blank" diff --git a/_recipes/sauteed-brussels-sprouts.md b/_recipes/sauteed-brussels-sprouts.md index 233b8f5877a..8bc3f876dd8 100644 --- a/_recipes/sauteed-brussels-sprouts.md +++ b/_recipes/sauteed-brussels-sprouts.md @@ -1,6 +1,6 @@ --- -title: Sautéed Brussels Sprouts +title: Sauteed Brussels Sprouts image: categories: [Recipes] tags: [sides, vegetarian, vegan] # TAG names should always be lowercase