From 8902c73add707d5224d2244ad7ac9ed132691056 Mon Sep 17 00:00:00 2001 From: Matthew Jorgensen Date: Sat, 5 Feb 2022 07:53:03 -0600 Subject: [PATCH] Fixes #54: do not overwrite custom attributes --- lib/jekyll-target-blank.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll-target-blank.rb b/lib/jekyll-target-blank.rb index 88ce8d4..7f024be 100644 --- a/lib/jekyll-target-blank.rb +++ b/lib/jekyll-target-blank.rb @@ -153,7 +153,7 @@ def add_target_blank_attribute(link) # # link = Nokogiri node. def add_rel_attributes(link) - rel = "" + rel = link["rel"] || "" rel = add_noopener_to_rel(rel) if @should_add_noreferrrer