jekyll-glossary_tooltip 1.2.0 → 1.3.0

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: 1af18a86074c299e01cd5fc9e56aa0fcf5f45259d8873b662ff0a13ae06bb8ee
4
- data.tar.gz: d658eba2a0b8b1452895552cc0232e185a93e119a02ec82bce3a834fd54a1fe5
3
+ metadata.gz: dc3418ab4d3f9ec90d2216634147be734c56f8f1dc0fb743ef2ae2fb32f1ab7a
4
+ data.tar.gz: 7d400181ba68bf52ace6e6dfd1c92f6e9b2fb53530e4929e7d79ad94465adc6f
5
5
  SHA512:
6
- metadata.gz: 4718441b5e7f1fa5ad8ce072121783c2602f1a6b7c779d617fb47aa556055f0474b364bb288c14a659dd02f273a14a96487046a165f172ada81ca976af0b4ff1
7
- data.tar.gz: 7ef65497569c403ab6aec4c9ca7e91c9cc9db316db62705310afd770f442f8d039d176b60830535d4560e20d5845335ac21da3e1e18e8b3dfd10f20e1339899c
6
+ metadata.gz: 38abe820838fbeddd3380802102f47a5337fb1a772d6d453ba20f4112aa3c793a38e40c84fe8b2d51aa381263731df08fb9c8efe5348bfc18cfb94b283a83cf8
7
+ data.tar.gz: 47467bc867e32d924438fcce2e6047ec0b7e7683a220355616a6fcc41c9a9849d41c17424007e1b61a23fd22ab18bcec001ab0975dcc3b76b70706ac4351ca20
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [1.3.0] - 2021-08-07
2
+ - Open the souce link from a tooltip in a new tab.
3
+
1
4
  ## [1.2.0] - 2021-08-06
2
5
  - Add bottom arrow to the tooltip.
3
6
  - Restyle the glossary term bottom border style and color.
data/README.md CHANGED
@@ -183,3 +183,6 @@ The gem is available as open source under the terms of the [MIT License](https:/
183
183
 
184
184
  # Acknowledgement
185
185
  Thanks to [ayastreb/jekyll-maps](https://github.com/ayastreb/jekyll-maps) for inspiration on project structure and options parsing!
186
+
187
+ # More Jekyll
188
+ Check out my other Jekyll repositories [here](https://github.com/erikw?tab=repositories&q=jekyll-&type=&language=&sort=).
@@ -30,7 +30,8 @@ module Jekyll
30
30
  def render_tooltip_url(entry)
31
31
  # The content of the anchor is set from the CSS class jekyll-glossary-source-link,
32
32
  # so that the plugin user can customize the text without touching ruby source.
33
- entry["url"] ? "<br><a class=\"jekyll-glossary-source-link\" href=\"#{entry["url"]}\"></a>" : ""
33
+ anchor = "<br><a class=\"jekyll-glossary-source-link\" href=\"#{entry["url"]}\" target=\"_blank\"></a>"
34
+ entry["url"] ? anchor : ""
34
35
  end
35
36
 
36
37
  def lookup_entry(site, term_name)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module GlossaryTooltip
5
- VERSION = "1.2.0"
5
+ VERSION = "1.3.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-glossary_tooltip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Westrup
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-06 00:00:00.000000000 Z
11
+ date: 2021-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll