This is an automated email from the ASF dual-hosted git repository.

brycemecum pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 11bcab338a4 [Website] Always open external links with target=_blank 
(#679)
11bcab338a4 is described below

commit 11bcab338a43ca1a034bc2ecb8ea666e64f9b5ca
Author: Bryce Mecum <[email protected]>
AuthorDate: Wed Jul 23 17:15:59 2025 -0700

    [Website] Always open external links with target=_blank (#679)
    
    Makes link opening behavior consistent for internal and external links.
    Internal links work as before and now external links (any non-relative
    URL) have `target="_blank" rel="noopener"` set. Content authors can
    override this by using inline HTML.
    
    Closes https://github.com/apache/arrow-site/issues/677
---
 Gemfile     | 1 +
 _config.yml | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/Gemfile b/Gemfile
index 559b76e3238..c0d33a8e76f 100644
--- a/Gemfile
+++ b/Gemfile
@@ -30,4 +30,5 @@ group :jekyll_plugins do
   gem "jekyll-feed"
   gem "jekyll-jupyter-notebook"
   gem "jekyll-seo-tag"
+  gem "jekyll-target-blank"
 end
diff --git a/_config.yml b/_config.yml
index f1a83ea705f..df75f54507f 100644
--- a/_config.yml
+++ b/_config.yml
@@ -73,3 +73,9 @@ defaults:
 
 plugins:
   - jekyll-feed
+  - jekyll-target-blank
+
+# We want noopener to support older browsers but don't want noreferrer
+# See https://github.com/apache/arrow-site/issues/677
+target-blank:
+   noreferrer: false

Reply via email to