Skip to content

Commit 8902c73

Browse files
committed
Fixes #54: do not overwrite custom attributes
1 parent c24dee3 commit 8902c73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll-target-blank.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def add_target_blank_attribute(link)
153153
#
154154
# link = Nokogiri node.
155155
def add_rel_attributes(link)
156-
rel = ""
156+
rel = link["rel"] || ""
157157
rel = add_noopener_to_rel(rel)
158158

159159
if @should_add_noreferrrer

0 commit comments

Comments
 (0)