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 +4 -4
- data/README.md +9 -1
- data/lib/elixir-toolkit-theme-plugins/tool_tag.rb +6 -1
- data/lib/elixir-toolkit-theme-plugins/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45d465d642bc399d4cf25b279d7f7388285efc94a2fec87dc0dcc8af973fb4f5
|
4
|
+
data.tar.gz: 402ae31641bf62beeb4639aa2dcae2bb557055905ac25e847af6e77be5dc0070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8e32f01c8eacf08b4a9dcc731c83cd38b55593d7125afbc0527fda6ebc396c8589cc75b244eebdae9e9b6e70eb5e14a6b115532d6caae1fbcd3c6790705e407
|
7
|
+
data.tar.gz: 5d6e239b9e6e5c018a98d46e56a4816a60232171a71fd23f7baffd6f180931c077d9454b9c9856a64ffa032bc03e8c40149ed34970e83bc39ba5e3c67dac4d9a
|
data/README.md
CHANGED
@@ -1 +1,9 @@
|
|
1
|
-
#
|
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
|
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.
|
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-
|
13
|
+
date: 2023-07-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jekyll
|