elixir-toolkit-theme 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a07e1cb623cc5fb4841e057ef9883239b178a68e3f136c0bddc2859ce8bef101
4
- data.tar.gz: 7d0c44d9b271d3ebefd6910576338490ec30dfa752b2343b10c2bccc3f19eba8
3
+ metadata.gz: b1c1682a74fb2275ac5f3577da52d962d447a8b5c68e02e13c4df2a247c58cb7
4
+ data.tar.gz: b4122f2bbcaa48526640aaaa10716a2891cebd7b14680d65eac35ea37f248bf6
5
5
  SHA512:
6
- metadata.gz: f5edebe68e889102d4e0e1dbbd2002067e957d9747ad0b4549f93d8414baa7a332c257130ac9b95e9b88a849f5209e21e3654af071467e7d9a26ca4731a81d2b
7
- data.tar.gz: 51a9028a3e61ace267ef51620dfde4bedaf0e499dc0b239e0a8da0a023265128b9d4aa00ecc60551a9f2e6548cddcee12421ffdd17994371f9afba94ca1e66b0
6
+ metadata.gz: 965b45a98b7a5229f44ae9e088bc42ca911f4f2dbea16ba9cad066744899c2c6a636654219e38e30e210376e142983dea013074a88aa0bea82cbdb63406273fc
7
+ data.tar.gz: 6516e650095475cda8a025e4d872c18761ce3b3e2dc85b9cfbda17acb83a590d917f56c9054ca1a3fa65430210b8df15e53e2eb9c6daa153cba6ac9732e73739
@@ -84,7 +84,7 @@
84
84
  <div class="card-body text-center py-0">
85
85
  <p class="card-title">{{ contributor }}</p>
86
86
  {%- if contributors[contributor].affiliation %}
87
- <p class="card-affiliation">{{ contributors[contributor].affiliation }}</p>
87
+ <p class="card-affiliation">{{ contributors[contributor].affiliation | join: " / " }}</p>
88
88
  {%- endif %}
89
89
  </div>
90
90
  {%- if contributors[contributor].git or contributors[contributor].email or contributors[contributor].orcid %}
@@ -87,7 +87,7 @@
87
87
  <div class="card-body text-center py-0">
88
88
  <p class="card-title">{{ stripped_name }}</p>
89
89
  {%- if contributors[contributor].affiliation %}
90
- <p class="card-affiliation">{{ contributors[contributor].affiliation }}</p>
90
+ <p class="card-affiliation">{{ contributors[contributor].affiliation | join: " / " }}</p>
91
91
  {%- endif %}
92
92
  </div>
93
93
  {%- if contributors[contributor].git or contributors[contributor].email or contributors[contributor].orcid %}
@@ -78,7 +78,7 @@
78
78
  <div class="card-body text-center py-0">
79
79
  <p class="card-title">{{ contributor }}</p>
80
80
  {%- if contributors[contributor].affiliation %}
81
- <p class="card-affiliation">{{ contributors[contributor].affiliation }}</p>
81
+ <p class="card-affiliation">{{ contributors[contributor].affiliation | join: " / " }}</p>
82
82
  {%- endif %}
83
83
  </div>
84
84
  {%- if contributors[contributor].git or contributors[contributor].email or contributors[contributor].orcid %}
data/_includes/head.html CHANGED
@@ -124,6 +124,9 @@
124
124
  <script>
125
125
  var _paq = window._paq = window._paq || [];
126
126
  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
127
+ {%- if site.matomo_cookies == false %}
128
+ _paq.push(['disableCookies']);
129
+ {%- endif %}
127
130
  _paq.push(['trackPageView']);
128
131
  _paq.push(['enableLinkTracking']);
129
132
  (function() {
@@ -3,14 +3,14 @@
3
3
  {%- else %}
4
4
  {%- assign tools = site.data.tool_and_resource_list | add_related_pages | sort_natural: "name" %}
5
5
  {%- endif %}
6
+ {%- assign tool_matches_total = 0 %}
6
7
  {%- assign country_pages = site.pages | where_exp: "item", "item.search_exclude != true" | where_exp:"item","item.national_resources != nil" %}
7
8
  {%- unless country_pages.size == 0 %}
8
- {%- assign tool_matches_total = 0 %}
9
9
  {%- assign query = "related_pages." | append: page.type %}
10
10
  {%- for country_page in country_pages %}
11
11
  {%- if include.tag %}
12
12
  {%- assign tool_matches = country_page.national_resources | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %}
13
- {%- unless tool_matches.size == 0 %}
13
+ {%- unless tool_matches.size == 0 %}
14
14
  {%- assign tool_matches_total = tool_matches_total | plus: tool_matches.size %}
15
15
  {%- endunless %}
16
16
  {%- else %}
@@ -19,7 +19,7 @@
19
19
  {%- if contributors[people].affiliation %}
20
20
  "affiliation": {
21
21
  "@type": "Organization",
22
- "name": "{{contributors[people].affiliation}}"
22
+ "name": "{{contributors[people].affiliation | join: " / "}}"
23
23
  },
24
24
  {%- endif %}
25
25
  {%- if contributors[people].email %}
@@ -100,11 +100,12 @@
100
100
  <p class="card-text h-100">{{ current_page.description}}</p>
101
101
  {%- endif %}
102
102
  {%- if current_page.affiliations %}
103
+ {%- assign pageaffil = current_page.affiliations | sort %}
103
104
  {%- assign alllogos = site.data.affiliations %}
104
105
  {%- assign allcountries = site.data.countries %}
105
106
  <div class="d-flex align-items-center flex-wrap gap-2">
106
107
  <span><b><small>Affiliations:</small></b></span>
107
- {%- for affiliation in current_page.affiliations %}
108
+ {%- for affiliation in pageaffil %}
108
109
  {%- assign filter_affiliation = alllogos | where: "name", affiliation | first %}
109
110
  {%- assign country = affiliation | upcase %}
110
111
  {%- if affiliation.size == 2 %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixir-toolkit-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-17 00:00:00.000000000 Z
11
+ date: 2025-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll