elixir-toolkit-theme-plugins 0.1.6 → 0.1.7

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: cdbdcaaaa830ab26f33c67e051eb63864358ede91a343d8e237c91bdd516e964
4
- data.tar.gz: 764c8e2f62e4f83bde63934831a5a7f9b1f78f3dcb9afe17cc5e474b0960224f
3
+ metadata.gz: 45d465d642bc399d4cf25b279d7f7388285efc94a2fec87dc0dcc8af973fb4f5
4
+ data.tar.gz: 402ae31641bf62beeb4639aa2dcae2bb557055905ac25e847af6e77be5dc0070
5
5
  SHA512:
6
- metadata.gz: 7df048eefc8c02f9f3905cea3c2df19f7b68aa8db496a85fe077ad1f990f90fa9d6f570d2074223d6c04dc18d1ee671c78ca41ca160bb04a6121841df0e9d876
7
- data.tar.gz: 51486d5390e32e23e63f07f37a315f6faf84a351000a1bb0ea7a74a0b2e1f99a710f8fb7076223487513472591ccd28b88e5bed570c40e1cc5fb7d7f49094a74
6
+ metadata.gz: c8e32f01c8eacf08b4a9dcc731c83cd38b55593d7125afbc0527fda6ebc396c8589cc75b244eebdae9e9b6e70eb5e14a6b115532d6caae1fbcd3c6790705e407
7
+ data.tar.gz: 5d6e239b9e6e5c018a98d46e56a4816a60232171a71fd23f7baffd6f180931c077d9454b9c9856a64ffa032bc03e8c40149ed34970e83bc39ba5e3c67dac4d9a
data/README.md CHANGED
@@ -1 +1,9 @@
1
- # elixir-toolkit-theme-plugins
1
+ # ELIXIR Toolkit Theme Plugins
2
+
3
+ Here we collect scripts to add aditional features to the [ELIXIR Toolkit Theme](https://github.com/ELIXIR-Belgium/elixir-toolkit-theme).
4
+
5
+ This features include:
6
+
7
+ * An improved way of tagging tools from a central tools table in the content of a page.
8
+ * Making sure the correct Git branch is detected when the theme is being deployed.
9
+
@@ -59,12 +59,17 @@ module Jekyll
59
59
  if registry["tess"]
60
60
  tags << create_tag("https://tess.elixir-europe.org/search?q=#{registry["tess"]}", "fa-graduation-cap", "Training")
61
61
  end
62
+
63
+ if registry["europmc"]
64
+ tags << create_tag("https://europepmc.org/article/MED/#{registry["europmc"]}", "fa-book", "Publication")
65
+ end
66
+
62
67
  end
63
68
  tags
64
69
  end
65
70
 
66
71
  def create_tag(url, icon, label)
67
- "<a href='#{url}' class='mt-2 me-2'><span class='badge bg-dark text-white hover-primary'><i class='fa-solid #{icon} me-2'></i>#{label}</span></a>"
72
+ "<a href='#{url}' target='_blank' rel='noopener' class='mt-2 me-2'><span class='badge bg-dark text-white hover-primary'><i class='fa-solid #{icon} me-2'></i>#{label}</span></a>"
68
73
  end
69
74
  end
70
75
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Ett
3
- VERSION = '0.1.6'
3
+ VERSION = '0.1.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixir-toolkit-theme-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-06-20 00:00:00.000000000 Z
13
+ date: 2023-07-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jekyll