jekyll_href 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed7504969773757ecab66ef862c11968ec563622c07f3840f34aaa8bc86b34fd
4
- data.tar.gz: 835d3f059cdc96f6095d2443a2ed19df5ffa79fc32a696f5fe7bdac76794c959
3
+ metadata.gz: 15480940e220781ca558c0f95d22688a87ea55f6b55f8bac9af6f93a1bbe5b33
4
+ data.tar.gz: 1314f1deb1e739899c5eb686bf9834d3f88bc46fe3df14bff72f44d737a3064c
5
5
  SHA512:
6
- metadata.gz: def5d5a884f5804461a656144fe2a87f13c07b34ec28d5577ddb8bbfcf4f04aa4773514d34d33bcbe6967da1a74bad60d501ecaa835e33a9441d0352f4460da0
7
- data.tar.gz: efc68d1bfc4c072e2de8b0d33d723ff9d206996d1ff9fc1fdea5fd905707c5df54227b62ca20160359e8ab3c84a09c3582c1edccfc9a06c6f9b1d177fb8b4318
6
+ metadata.gz: d15df7a457f5da7181525240ee63ea5a21a404eb8c0fdaf20a6f687378ef4947ff7a32e769376e3825aa95cad2862d09746907635c2320d517f270e2cd1156de
7
+ data.tar.gz: 14c3ba6b074a3da884ff50f82519ee054625c5340afae444fddc93ec90414b962a1300ebac4fa3c8904d3bdeedc04f5c0aa26fdc520bafc23463f415f9d67c60
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.0.11 / 2022-04-27
2
+ * Suppresses target and rel=nofollow attributes for mailto: links.
3
+
1
4
  ## 1.0.10 / 2022-04-27
2
5
  * Works from pre-computed `site['all_collections']` provided by a new dependency called `jekyll_all_collections`.
3
6
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllHrefVersion
4
- VERSION = "1.0.10"
4
+ VERSION = "1.0.11"
5
5
  end
data/lib/jekyll_href.rb CHANGED
@@ -86,6 +86,7 @@ class ExternalHref < Liquid::Tag
86
86
 
87
87
  match(liquid_context) if @match
88
88
  link = replace_vars(liquid_context, @link)
89
+ @target = @follow = "" if link.start_with? "mailto:"
89
90
  @logger.debug { "@link=#{@link}; link=#{link}" }
90
91
  "<a href='#{link}'#{@target}#{@follow}>#{@text}</a>"
91
92
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_href
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Slinn