elixir-toolkit-theme 5.0.0 → 6.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 +4 -4
- data/README.md +15 -8
- data/_data/countries.yml +36 -36
- data/_includes/affiliation-logo.html +10 -0
- data/_includes/affiliation-tiles-page.html +27 -27
- data/_includes/citation-page.html +19 -17
- data/_includes/contributor-avatar.html +16 -0
- data/_includes/contributor-card.html +33 -0
- data/_includes/contributor-carousel-selection.html +17 -68
- data/_includes/contributor-minitiles-page.html +18 -107
- data/_includes/contributor-tiles-all.html +8 -61
- data/_includes/events.html +5 -0
- data/_includes/github-buttons.html +14 -14
- data/_includes/head.html +3 -3
- data/_includes/more-information-tiles.html +5 -5
- data/_includes/page-metadata-tabs.html +92 -0
- data/_includes/resource-table-all.html +30 -18
- data/_includes/resource-table-page.html +2 -2
- data/_includes/scroll-top.html +1 -1
- data/_includes/section-navigation-tiles.html +10 -5
- data/_includes/sidebar.html +58 -42
- data/_includes/toc.html +1 -1
- data/_includes/topnav.html +2 -1
- data/_layouts/default.html +3 -3
- data/_layouts/page.html +4 -4
- data/_sass/_bootstrap_variables.scss +2 -1
- data/_sass/_variables.scss +11 -17
- data/assets/css/main.scss +236 -108
- data/assets/img/apple-touch-icon.png +0 -0
- data/assets/img/favicon.svg +24 -0
- data/assets/img/site.webmanifest +19 -17
- data/assets/img/web-app-manifest-192x192.png +0 -0
- data/assets/img/web-app-manifest-512x512.png +0 -0
- data/assets/js/main.js +133 -22
- data/assets/js/toc.js +5 -3
- metadata +11 -8
- data/assets/img/android-chrome-192x192.png +0 -0
- data/assets/img/android-chrome-512x512.png +0 -0
- data/assets/img/safari-pinned-tab.svg +0 -29
- data/assets/js/jquery.navgoco.js +0 -314
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2dfacff95bae6c8507e6ce18b3866b9fe3f0990f793c7f03637d6ad02dadf375
|
|
4
|
+
data.tar.gz: '019b16850550c4a7eb5e8a5fb33a9522b8b9755a1d0a6ee2b97e2631fcfe4bc4'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36fbf492144ad890932cdd109580df03a65b072ff9e72ea664bef077dbf4023535abc8a57df6179b8fb7c69a24cd9d04a88068819caf279e00f88005180dd568
|
|
7
|
+
data.tar.gz: 67af3c8587bd09cfbf8424e5cadfdd2802f3b5f2dacd198d948f3351ef207bba3cab43b97f7db1061f5bcaa6d77253aff4951c9966345f351c5e7f2cde2b6d9c
|
data/README.md
CHANGED
|
@@ -28,16 +28,16 @@ Its key features:
|
|
|
28
28
|
|
|
29
29
|
## Enabling the theme on your Jekyll project
|
|
30
30
|
|
|
31
|
-
The quickest way to use the elixir-toolkit-theme is setting it as a [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) in your `config.yml` file:
|
|
31
|
+
The quickest way to use the latest version of elixir-toolkit-theme is setting it as a [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) in your `config.yml` file:
|
|
32
32
|
|
|
33
33
|
```yaml
|
|
34
34
|
remote_theme: ELIXIR-Belgium/elixir-toolkit-theme
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
You can lock it onto a specific version using:
|
|
37
|
+
You can lock it onto a specific version (recommended!) using:
|
|
38
38
|
|
|
39
39
|
```yaml
|
|
40
|
-
remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@
|
|
40
|
+
remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@6.0.0
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
### Using Ruby Gems (alternative)
|
|
@@ -50,7 +50,7 @@ gem "elixir-toolkit-theme"
|
|
|
50
50
|
You can lock it onto a specific version like this:
|
|
51
51
|
|
|
52
52
|
```ruby
|
|
53
|
-
gem "elixir-toolkit-theme", "~>
|
|
53
|
+
gem "elixir-toolkit-theme", "~> 6.0.0"
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
And add this line to your Jekyll site's `_config.yml`:
|
|
@@ -153,9 +153,11 @@ This will start the docker container and serve the website locally. Make sure th
|
|
|
153
153
|
- [RDMkit](https://rdmkit.elixir-europe.org/) (CONVERGE)
|
|
154
154
|
- [WorkflowHub](https://about.workflowhub.eu/) (EOSC-life project)
|
|
155
155
|
- [RO-crate](https://www.researchobject.org/ro-crate/) (EOSC)
|
|
156
|
+
- [GPG RO-Crate Profile](https://uoa-eresearch.github.io/GPG-ro-crate-profile/) (University of Auckland eResearch)
|
|
156
157
|
- [Infectious Diseases Toolkit](https://www.infectious-diseases-toolkit.org/) (BY-COVID)
|
|
157
158
|
- [FAIRDOM](https://fair-dom.org/) (FAIRDOM community)
|
|
158
159
|
- [How-to-Guides](https://australianbiocommons.github.io/how-to-guides/) (Australian BioCommons)
|
|
160
|
+
- [Australian Tree of Life documentation](https://australianbiocommons.github.io/atol/) (Australian BioCommons)
|
|
159
161
|
- [SPLASH](https://elixir-europe-training.github.io/ELIXIR-Training-SPLASH/) (ELIXIR Training platform)
|
|
160
162
|
- [1+MG Framework](https://framework.onemilliongenomes.eu/) (GDI)
|
|
161
163
|
- [Human 'Omics Data Sharing Field Guide](https://australianbiocommons.github.io/human-omics-data-sharing-field-guide/) (Australian BioCommons)
|
|
@@ -164,15 +166,22 @@ This will start the docker container and serve the website locally. Make sure th
|
|
|
164
166
|
- [TRE-FX](https://trefx.uk/) (DARE UK, HDR UK)
|
|
165
167
|
- [Norwegian Life Science RDM LookUp](https://elixir.no/rdm-lookup/) (ELIXIR Norway)
|
|
166
168
|
- [RSQkit: Research Software Quality kit](https://everse.software/RSQKit/) (EOSC-EVERSE)
|
|
167
|
-
- [
|
|
169
|
+
- [research-data.no](https://plan.research-data.no/pages/) (ELIXIR Norway & BOTT universities Norway)
|
|
168
170
|
- [Learning-Library](https://patcapon39.github.io/Learning-Library/) (Australian BioCommons)
|
|
169
171
|
- [ELIXIR-IT Training Platform](https://elixir-iib-training.github.io/site/training_courses) (ELIXIR IT)
|
|
170
172
|
- [FAIRDOM-SEEK Documentation](https://docs.seek4science.org/) (SEEK community)
|
|
171
173
|
- [FAIR Lesson Plan Handbook](https://elixir-europe-training.github.io/ELIXIR-TrP-FAIR-Converge/) (ELIXIR Training platform)
|
|
172
|
-
- [Data Steward Handbook](https://elixir-
|
|
174
|
+
- [Data Steward Handbook](https://elixir-europe.github.io/ds-handbook/) (ELIXIR RDM Community)
|
|
173
175
|
- [Fed-A-Crate](https://elixir-europe.github.io/fed-a-crate/how-to-contribute) (ELIXIR Fed-A-Crate project)
|
|
174
176
|
- [Federated Learning toolkit (FLkit)](https://uhasselt-biomedicaldatasciences.github.io/federated-learning-toolkit/) (UHasselt)
|
|
175
177
|
- [mTeSS-X](https://elixirtess.github.io/mTeSS-X/) (OSCARS project)
|
|
178
|
+
- [Galaxy Codex](https://galaxyproject.github.io/galaxy_codex/) (Galaxy Community)
|
|
179
|
+
- [ELIXIR Software Management Plan](https://elixir-europe.github.io/software-management-plans/community/) (ELIXIR SMP Community)
|
|
180
|
+
- [FAIR Metroline](https://fairmetroline.org/) (Health-RI)
|
|
181
|
+
- [Globus Community Australasia](https://aarnet.github.io/Globus-Community/) (AARNet)
|
|
182
|
+
- [ELIXIR Research Software Ecosystem (RSEc)](https://research-software-ecosystem.github.io/) (ELIXIR Tools Platform)
|
|
183
|
+
- [Knowledge Hub](https://knowledge.lnds.lu/) (Luxembourg National Data Service (LNDS))
|
|
184
|
+
- [ELIXIR-ELITMa](https://elixir-europe-training.github.io/ELIXIR-ELITMa/) (ELIXIR Training platform)
|
|
176
185
|
- Want your instance here? [Open an issue](https://github.com/ELIXIR-Belgium/elixir-toolkit-theme/issues)
|
|
177
186
|
|
|
178
187
|
## Dependencies
|
|
@@ -185,7 +194,6 @@ This theme would not be possible without following open source projects:
|
|
|
185
194
|
- [lunr.js](https://github.com/olivernn/lunr.js) - Main tool behind the search bar enabling content search
|
|
186
195
|
- [jQuery](https://github.com/jquery/jquery) - A fast, small, and feature-rich JavaScript library for easy scripting
|
|
187
196
|
- [jekyll-table-of-contents](https://github.com/ghiculescu/jekyll-table-of-contents) - Lightweight JS script to render the table of contents
|
|
188
|
-
- [jQuery Navgoco Menus](https://github.com/tefra/navgoco) - Multi-level slide navigation with accordion effect
|
|
189
197
|
- [Font-Awesome](https://github.com/FortAwesome/Font-Awesome) - The famous icon library
|
|
190
198
|
- [flag-icons](https://github.com/lipis/flag-icons) - A curated collection of all country flags in SVG + css integration
|
|
191
199
|
- [clipboard.js](https://github.com/zenorocha/clipboard.js) - Modern copy to clipboard. No Flash. Just 3kb gzipped clipboard.
|
|
@@ -203,4 +211,3 @@ If you like our work, you can add following badge to the readme of your project:
|
|
|
203
211
|
## License
|
|
204
212
|
|
|
205
213
|
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
206
|
-
|
data/_data/countries.yml
CHANGED
|
@@ -12,7 +12,7 @@ AS: American Samoa
|
|
|
12
12
|
AT: Austria
|
|
13
13
|
AU: Australia
|
|
14
14
|
AW: Aruba
|
|
15
|
-
AX:
|
|
15
|
+
AX: Åland Islands
|
|
16
16
|
AZ: Azerbaijan
|
|
17
17
|
BA: Bosnia and Herzegovina
|
|
18
18
|
BB: Barbados
|
|
@@ -23,11 +23,11 @@ BG: Bulgaria
|
|
|
23
23
|
BH: Bahrain
|
|
24
24
|
BI: Burundi
|
|
25
25
|
BJ: Benin
|
|
26
|
-
BL:
|
|
26
|
+
BL: Saint Barthélemy
|
|
27
27
|
BM: Bermuda
|
|
28
|
-
BN: Brunei
|
|
29
|
-
BO: Bolivia
|
|
30
|
-
BQ:
|
|
28
|
+
BN: Brunei
|
|
29
|
+
BO: Bolivia
|
|
30
|
+
BQ: Caribbean Netherlands
|
|
31
31
|
BR: Brazil
|
|
32
32
|
BS: Bahamas
|
|
33
33
|
BT: Bhutan
|
|
@@ -37,7 +37,7 @@ BY: Belarus
|
|
|
37
37
|
BZ: Belize
|
|
38
38
|
CA: Canada
|
|
39
39
|
CC: Cocos (Keeling) Islands
|
|
40
|
-
CD: Congo
|
|
40
|
+
CD: DR Congo
|
|
41
41
|
CF: Central African Republic
|
|
42
42
|
CG: Congo
|
|
43
43
|
CH: Switzerland
|
|
@@ -49,11 +49,11 @@ CN: China
|
|
|
49
49
|
CO: Colombia
|
|
50
50
|
CR: Costa Rica
|
|
51
51
|
CU: Cuba
|
|
52
|
-
CV:
|
|
53
|
-
CW:
|
|
52
|
+
CV: Cape Verde
|
|
53
|
+
CW: Curaçao
|
|
54
54
|
CX: Christmas Island
|
|
55
55
|
CY: Cyprus
|
|
56
|
-
CZ:
|
|
56
|
+
CZ: Czechia
|
|
57
57
|
DE: Germany
|
|
58
58
|
DJ: Djibouti
|
|
59
59
|
DK: Denmark
|
|
@@ -69,12 +69,12 @@ ES: Spain
|
|
|
69
69
|
ET: Ethiopia
|
|
70
70
|
FI: Finland
|
|
71
71
|
FJ: Fiji
|
|
72
|
-
FK: Falkland Islands
|
|
73
|
-
FM: Micronesia
|
|
72
|
+
FK: Falkland Islands
|
|
73
|
+
FM: Micronesia
|
|
74
74
|
FO: Faroe Islands
|
|
75
75
|
FR: France
|
|
76
76
|
GA: Gabon
|
|
77
|
-
GB: United Kingdom
|
|
77
|
+
GB: United Kingdom
|
|
78
78
|
GD: Grenada
|
|
79
79
|
GE: Georgia
|
|
80
80
|
GF: French Guiana
|
|
@@ -87,7 +87,7 @@ GN: Guinea
|
|
|
87
87
|
GP: Guadeloupe
|
|
88
88
|
GQ: Equatorial Guinea
|
|
89
89
|
GR: Greece
|
|
90
|
-
GS: South Georgia
|
|
90
|
+
GS: South Georgia
|
|
91
91
|
GT: Guatemala
|
|
92
92
|
GU: Guam
|
|
93
93
|
GW: Guinea-Bissau
|
|
@@ -105,7 +105,7 @@ IM: Isle of Man
|
|
|
105
105
|
IN: India
|
|
106
106
|
IO: British Indian Ocean Territory
|
|
107
107
|
IQ: Iraq
|
|
108
|
-
IR: Iran
|
|
108
|
+
IR: Iran
|
|
109
109
|
IS: Iceland
|
|
110
110
|
IT: Italy
|
|
111
111
|
JE: Jersey
|
|
@@ -118,12 +118,12 @@ KH: Cambodia
|
|
|
118
118
|
KI: Kiribati
|
|
119
119
|
KM: Comoros
|
|
120
120
|
KN: Saint Kitts and Nevis
|
|
121
|
-
KP: Korea
|
|
122
|
-
KR: Korea
|
|
121
|
+
KP: North Korea
|
|
122
|
+
KR: South Korea
|
|
123
123
|
KW: Kuwait
|
|
124
124
|
KY: Cayman Islands
|
|
125
125
|
KZ: Kazakhstan
|
|
126
|
-
LA:
|
|
126
|
+
LA: Laos
|
|
127
127
|
LB: Lebanon
|
|
128
128
|
LC: Saint Lucia
|
|
129
129
|
LI: Liechtenstein
|
|
@@ -136,16 +136,16 @@ LV: Latvia
|
|
|
136
136
|
LY: Libya
|
|
137
137
|
MA: Morocco
|
|
138
138
|
MC: Monaco
|
|
139
|
-
MD: Moldova
|
|
139
|
+
MD: Moldova
|
|
140
140
|
ME: Montenegro
|
|
141
|
-
MF: Saint Martin
|
|
141
|
+
MF: Saint Martin
|
|
142
142
|
MG: Madagascar
|
|
143
143
|
MH: Marshall Islands
|
|
144
144
|
MK: North Macedonia
|
|
145
145
|
ML: Mali
|
|
146
146
|
MM: Myanmar
|
|
147
147
|
MN: Mongolia
|
|
148
|
-
MO:
|
|
148
|
+
MO: Macau
|
|
149
149
|
MP: Northern Mariana Islands
|
|
150
150
|
MQ: Martinique
|
|
151
151
|
MR: Mauritania
|
|
@@ -178,17 +178,17 @@ PH: Philippines
|
|
|
178
178
|
PK: Pakistan
|
|
179
179
|
PL: Poland
|
|
180
180
|
PM: Saint Pierre and Miquelon
|
|
181
|
-
PN: Pitcairn
|
|
181
|
+
PN: Pitcairn Islands
|
|
182
182
|
PR: Puerto Rico
|
|
183
|
-
PS: Palestine
|
|
183
|
+
PS: Palestine
|
|
184
184
|
PT: Portugal
|
|
185
185
|
PW: Palau
|
|
186
186
|
PY: Paraguay
|
|
187
187
|
QA: Qatar
|
|
188
|
-
RE:
|
|
188
|
+
RE: Réunion
|
|
189
189
|
RO: Romania
|
|
190
190
|
RS: Serbia
|
|
191
|
-
RU:
|
|
191
|
+
RU: Russia
|
|
192
192
|
RW: Rwanda
|
|
193
193
|
SA: Saudi Arabia
|
|
194
194
|
SB: Solomon Islands
|
|
@@ -206,14 +206,14 @@ SN: Senegal
|
|
|
206
206
|
SO: Somalia
|
|
207
207
|
SR: Suriname
|
|
208
208
|
SS: South Sudan
|
|
209
|
-
ST:
|
|
209
|
+
ST: São Tomé and Príncipe
|
|
210
210
|
SV: El Salvador
|
|
211
|
-
SX: Sint Maarten
|
|
212
|
-
SY:
|
|
213
|
-
SZ:
|
|
211
|
+
SX: Sint Maarten
|
|
212
|
+
SY: Syria
|
|
213
|
+
SZ: Eswatini
|
|
214
214
|
TC: Turks and Caicos Islands
|
|
215
215
|
TD: Chad
|
|
216
|
-
TF: French Southern
|
|
216
|
+
TF: French Southern and Antarctic Lands
|
|
217
217
|
TG: Togo
|
|
218
218
|
TH: Thailand
|
|
219
219
|
TJ: Tajikistan
|
|
@@ -222,27 +222,27 @@ TL: Timor-Leste
|
|
|
222
222
|
TM: Turkmenistan
|
|
223
223
|
TN: Tunisia
|
|
224
224
|
TO: Tonga
|
|
225
|
-
TR:
|
|
225
|
+
TR: Türkiye
|
|
226
226
|
TT: Trinidad and Tobago
|
|
227
227
|
TV: Tuvalu
|
|
228
228
|
TW: Taiwan
|
|
229
|
-
TZ: Tanzania
|
|
229
|
+
TZ: Tanzania
|
|
230
230
|
UA: Ukraine
|
|
231
231
|
UG: Uganda
|
|
232
232
|
UM: United States Minor Outlying Islands
|
|
233
|
-
US: United States
|
|
233
|
+
US: United States
|
|
234
234
|
UY: Uruguay
|
|
235
235
|
UZ: Uzbekistan
|
|
236
236
|
VA: Vatican City
|
|
237
237
|
VC: Saint Vincent and the Grenadines
|
|
238
|
-
VE: Venezuela
|
|
239
|
-
VG: Virgin Islands
|
|
240
|
-
VI: Virgin Islands
|
|
238
|
+
VE: Venezuela
|
|
239
|
+
VG: British Virgin Islands
|
|
240
|
+
VI: United States Virgin Islands
|
|
241
241
|
VN: Vietnam
|
|
242
242
|
VU: Vanuatu
|
|
243
243
|
WF: Wallis and Futuna
|
|
244
244
|
WS: Samoa
|
|
245
|
-
XK:
|
|
245
|
+
XK: Kosovo
|
|
246
246
|
YE: Yemen
|
|
247
247
|
YT: Mayotte
|
|
248
248
|
ZA: South Africa
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{%- if include.image_url -%}
|
|
2
|
+
<img src="{{ include.image_url | relative_url }}" alt="{{ include.name }}" class="affiliation-img">
|
|
3
|
+
{%- elsif include.country_code -%}
|
|
4
|
+
<div class="ratio ratio-4x3">
|
|
5
|
+
<div class="rounded shadow-sm flag-icon flag-icon-{{ include.country_code | downcase }}">
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
{%- else -%}
|
|
9
|
+
<span>{{ include.name }}</span>
|
|
10
|
+
{%- endif -%}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
{%-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
{%- if
|
|
9
|
-
{%-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
{%- unless include.sort == false %}
|
|
2
|
+
{%- assign affiliations_list = include.affiliations_list | sort %}
|
|
3
|
+
{%- else %}
|
|
4
|
+
{%- assign affiliations_list = include.affiliations_list %}
|
|
5
|
+
{%- endunless %}
|
|
6
|
+
<div class="d-flex flex-wrap gap-2">
|
|
7
|
+
{%- for affiliation_name in affiliations_list -%}
|
|
8
|
+
{%- comment -%} Check if it's a country code (2 characters) {%- endcomment -%}
|
|
9
|
+
{%- if affiliation_name.size == 2 -%}
|
|
10
|
+
|
|
11
|
+
{%- assign country_code = affiliation_name | upcase %}
|
|
12
|
+
{%- assign country_link = site.pages | where:"country_code",country_code | first %}
|
|
13
|
+
{%- assign country_name = site.data.countries[country_code] %}
|
|
14
|
+
|
|
15
|
+
{%- if country_link %}
|
|
16
|
+
<a role="button" data-bs-toggle="tooltip" title="{{country_name}}" class="btn btn-sm d-flex align-items-center affiliation-link hover-primary" href="{{country_link.url | relative_url}}">
|
|
17
|
+
{%- else %}
|
|
18
|
+
<a role="button" data-bs-toggle="tooltip" title="{{country_name}}" class="btn btn-sm affiliation-link d-flex align-items-center disabled border-0" aria-disabled="true">
|
|
19
|
+
{%- endif %}
|
|
16
20
|
<div class="d-flex justify-content-center affiliation-flag">
|
|
17
|
-
|
|
18
|
-
<div class="rounded shadow-sm flag-icon flag-icon-{{affiliation | downcase}}">
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
+
{%- include affiliation-logo.html country_code=country_code name=country_code -%}
|
|
21
22
|
</div>
|
|
22
|
-
|
|
23
|
-
{%- else
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
</a>
|
|
24
|
+
{%- else -%}
|
|
25
|
+
{%- assign affiliation_info = site.data.affiliations | where:"name",affiliation_name | first %}
|
|
26
|
+
<a class="btn btn-sm affiliation-link d-flex align-items-center justify-content-center hover-primary" data-bs-toggle="tooltip" title="{{affiliation_info.name}}" href="{{affiliation_info.url}}">
|
|
26
27
|
<img src="{{affiliation_info.image_url | relative_url}}" alt="{{affiliation_info.name}}" class="affiliation-img">
|
|
27
|
-
|
|
28
|
-
{%- endif
|
|
29
|
-
|
|
28
|
+
</a>
|
|
29
|
+
{%- endif -%}
|
|
30
|
+
{%- endfor -%}
|
|
30
31
|
</div>
|
|
31
|
-
{%- endif %}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
|
|
2
|
+
<p class="mb-0">
|
|
3
|
+
{%- if include.contributors_list %}
|
|
4
|
+
{%- unless include.sort == false %}
|
|
5
|
+
{%- assign name_list = include.contributors_list | sort %}
|
|
6
|
+
{%- else %}
|
|
7
|
+
{%- assign name_list = include.contributors_list %}
|
|
8
|
+
{%- endunless %}
|
|
9
|
+
{{ name_list | join: ", " }},
|
|
10
|
+
{%- endif %}
|
|
11
|
+
"<em>{{ page.title | strip }}</em>".
|
|
12
|
+
{%- if site.url %}
|
|
13
|
+
{{ site.url | remove: "https://www." | remove: "http://www." | remove: "https://" | remove: "http://" }}.
|
|
14
|
+
{%- endif %}
|
|
15
|
+
{%- assign page_url = page.url | absolute_url %}
|
|
16
|
+
<a href="{{ page_url }}">{{ page_url }}</a> <span id="current_date"></span>.
|
|
13
17
|
</p>
|
|
14
18
|
<script>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
</script>
|
|
18
|
-
{% endif %}
|
|
19
|
-
|
|
19
|
+
var current_date = new Date().toLocaleDateString('en-uk', { year:"numeric", month:"long", day:"numeric"})
|
|
20
|
+
document.getElementById("current_date").textContent = " (accessed " + current_date + ")";
|
|
21
|
+
</script>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{%- if include.image_url %}
|
|
2
|
+
<div class="contr-placeholder rounded-circle" style="background-image: url({{ include.image_url }});">
|
|
3
|
+
</div>
|
|
4
|
+
{%- elsif include.git %}
|
|
5
|
+
<img src="https://avatars.githubusercontent.com/{{ include.git }}" class="img-fluid rounded-circle" alt="{{ include.name }}">
|
|
6
|
+
{%- else -%}
|
|
7
|
+
<div class="contr-placeholder rounded-circle d-flex justify-content-center align-items-center{%- if include.small %} contributor-img-sm{% endif %}">
|
|
8
|
+
{%- assign name_parts = include.name | split: " " %}
|
|
9
|
+
{%- assign initials = "" %}
|
|
10
|
+
{%- for part in name_parts %}
|
|
11
|
+
{%- assign initial = part | slice: 0,1 | capitalize %}
|
|
12
|
+
{%- assign initials = initials | append: initial %}
|
|
13
|
+
{%- endfor -%}
|
|
14
|
+
<span class="fw-bold{%- unless include.small %} fs-2{% endunless %}">{{ initials }}</span>
|
|
15
|
+
</div>
|
|
16
|
+
{%- endif %}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<div class="card h-100">
|
|
2
|
+
<div class="position-relative">
|
|
3
|
+
<div class="p-3">
|
|
4
|
+
<div class="ratio ratio-1x1">
|
|
5
|
+
{%- include contributor-avatar.html name=include.name image_url=include.image_url git=include.git %}
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
{%- if include.role %}
|
|
9
|
+
<span class="badge position-absolute top-0 end-0">{{ include.role | capitalize }}</span>
|
|
10
|
+
{%- endif -%}
|
|
11
|
+
</div>
|
|
12
|
+
<div class="card-body text-center py-0">
|
|
13
|
+
<p class="card-title">{{ include.name }}</p>
|
|
14
|
+
{%- if include.affiliation %}
|
|
15
|
+
<p class="card-affiliation">{{ include.affiliation | join: " / " }}</p>
|
|
16
|
+
{%- endif -%}
|
|
17
|
+
</div>
|
|
18
|
+
{%- if include.git or include.email or include.orcid %}
|
|
19
|
+
<div class="card-footer">
|
|
20
|
+
<div class="d-flex justify-content-center gap-2">
|
|
21
|
+
{%- if include.git %}
|
|
22
|
+
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="https://github.com/{{ include.git }}"><i class="fa-brands fa-github"></i><span class="visually-hidden">GitHub</span></a>
|
|
23
|
+
{%- endif -%}
|
|
24
|
+
{%- if include.email %}
|
|
25
|
+
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="mailto:{{ include.email }}"><i class="fa-solid fa-envelope"></i><span class="visually-hidden">Email</span></a>
|
|
26
|
+
{%- endif -%}
|
|
27
|
+
{%- if include.orcid %}
|
|
28
|
+
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="https://orcid.org/{{ include.orcid }}"><i class="fa-brands fa-orcid"></i><span class="visually-hidden">Orcid</span></a>
|
|
29
|
+
{%- endif %}
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
{%- endif %}
|
|
33
|
+
</div>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{%- assign carousel_counter = carousel_counter | plus: 1 %}
|
|
2
|
-
{%- assign
|
|
2
|
+
{%- assign contributors_lookup = site.data.CONTRIBUTORS %}
|
|
3
3
|
{%- assign allcontrstr = nil %}
|
|
4
|
-
{%- assign nr = include.col | default:
|
|
4
|
+
{%- assign nr = include.col | default: 4 %}
|
|
5
5
|
{%- if include.custom %}
|
|
6
6
|
{%- assign allcontrstr = include.custom %}
|
|
7
7
|
{%- elsif include.role %}
|
|
8
8
|
{%- assign rolefilter = include.role | downcase %}
|
|
9
|
-
{%- for contr in
|
|
9
|
+
{%- for contr in contributors_lookup %}
|
|
10
10
|
{%- assign contrrole = contr[1]['role'] | downcase %}
|
|
11
11
|
{%- if rolefilter == contrrole %}
|
|
12
12
|
{%- if allcontrstr %}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
{%- endif %}
|
|
28
28
|
{%- endif %}
|
|
29
29
|
{%- endfor %}
|
|
30
|
-
{%- for contr in
|
|
30
|
+
{%- for contr in contributors_lookup %}
|
|
31
31
|
{%- if allcontrstr %}
|
|
32
32
|
{%- assign allcontrstr = allcontrstr | append: ", " | append: contr[0] %}
|
|
33
33
|
{%- else %}
|
|
@@ -40,70 +40,18 @@
|
|
|
40
40
|
{%- assign allcontributors = allcontributors | sort %}
|
|
41
41
|
{%- endunless %}
|
|
42
42
|
{%- unless allcontributors.size == 0 %}
|
|
43
|
+
<div class="position-relative">
|
|
43
44
|
<div id="contributors-carousel-{{carousel_counter}}" class="carousel carousel-dark slide my-4" data-ride="carousel" data-bs-interval="7000">
|
|
44
45
|
<div class="carousel-inner">
|
|
45
46
|
{%- assign counter = 0 %}
|
|
46
|
-
{%- for
|
|
47
|
+
{%- for contributor_name in allcontributors %}
|
|
47
48
|
{%- if modulo == '0' or counter == 0 %}
|
|
48
49
|
<div class="carousel-item {% if counter == 0 %}active{% endif %}">
|
|
49
50
|
<div class="row row-cols-{{nr}} contributor-cards g-1 g-xl-4 ">
|
|
50
51
|
{%- endif %}
|
|
52
|
+
{%- assign data = contributors_lookup[contributor_name] %}
|
|
51
53
|
<div class="col">
|
|
52
|
-
|
|
53
|
-
{%- assign id = contributors[contributor].git | default: 'no_github' %}
|
|
54
|
-
<div class="position-relative">
|
|
55
|
-
{%- if contributors[contributor].image_url %}
|
|
56
|
-
<div class="p-3">
|
|
57
|
-
<div class="ratio ratio-1x1">
|
|
58
|
-
<div class="contr-placeholder rounded-circle" style="background-image: url({{ contributors[contributor].image_url }});">
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
{%- else %}
|
|
63
|
-
{%- if contributors[contributor].git %}
|
|
64
|
-
<img src="https://avatars.githubusercontent.com/{{id}}" class="card-img-top p-3 rounded-circle" alt="{{ contributor }}">
|
|
65
|
-
{%- else %}
|
|
66
|
-
<div class="p-3">
|
|
67
|
-
<div class="ratio ratio-1x1">
|
|
68
|
-
<div class="contr-placeholder rounded-circle d-flex justify-content-center align-items-center">
|
|
69
|
-
{%- assign contr_name = contributor | split: " " %}
|
|
70
|
-
{%- assign initials = "" %}
|
|
71
|
-
{%- for name in contr_name %}
|
|
72
|
-
{%- assign initial = name | slice: 0,1 | capitalize %}
|
|
73
|
-
{%- assign initials = initials | append: initial %}
|
|
74
|
-
{%- endfor %}
|
|
75
|
-
<span class="fs-2 fw-bold">{{ initials }}</span>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
{%- endif %}
|
|
80
|
-
{%- endif %}
|
|
81
|
-
{%- if contributors[contributor].role %}
|
|
82
|
-
<span class="badge position-absolute top-0 end-0">{{ contributors[contributor].role | capitalize }}</span>
|
|
83
|
-
{%- endif %}
|
|
84
|
-
</div>
|
|
85
|
-
<div class="card-body text-center py-0">
|
|
86
|
-
<p class="card-title">{{ contributor }}</p>
|
|
87
|
-
{%- if contributors[contributor].affiliation %}
|
|
88
|
-
<p class="card-affiliation">{{ contributors[contributor].affiliation | join: " / " }}</p>
|
|
89
|
-
{%- endif %}
|
|
90
|
-
</div>
|
|
91
|
-
{%- if contributors[contributor].git or contributors[contributor].email or contributors[contributor].orcid %}
|
|
92
|
-
<div class="card-footer">
|
|
93
|
-
<div class="d-flex justify-content-center gap-1 gap-md-2">
|
|
94
|
-
{%- if contributors[contributor].git %}
|
|
95
|
-
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="https://github.com/{{id}}"><i class="fa-brands fa-github"></i></a>
|
|
96
|
-
{%- endif %}
|
|
97
|
-
{%- if contributors[contributor].email %}
|
|
98
|
-
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="mailto:{{contributors[contributor].email}}"><i class="fa-solid fa-envelope"></i></a>
|
|
99
|
-
{%- endif %}
|
|
100
|
-
{%- if contributors[contributor].orcid %}
|
|
101
|
-
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="https://orcid.org/{{contributors[contributor].orcid}}"><i class="fa-brands fa-orcid"></i></a>
|
|
102
|
-
{%- endif %}
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
105
|
-
{%- endif %}
|
|
106
|
-
</div>
|
|
54
|
+
{%- include contributor-card.html name=contributor_name image_url=data.image_url git=data.git email=data.email orcid=data.orcid role=data.role affiliation=data.affiliation %}
|
|
107
55
|
</div>
|
|
108
56
|
{%- assign counter = counter | plus:1 %}
|
|
109
57
|
{%- capture modulo %}{{ counter | modulo:nr }}{% endcapture %}
|
|
@@ -112,14 +60,15 @@
|
|
|
112
60
|
</div>
|
|
113
61
|
{%- endif %}
|
|
114
62
|
{%- endfor %}
|
|
115
|
-
<button class="carousel-control-prev" type="button" data-bs-target="#contributors-carousel-{{carousel_counter}}" data-bs-slide="prev">
|
|
116
|
-
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
|
117
|
-
<span class="visually-hidden">Previous</span>
|
|
118
|
-
</button>
|
|
119
|
-
<button class="carousel-control-next" type="button" data-bs-target="#contributors-carousel-{{carousel_counter}}" data-bs-slide="next">
|
|
120
|
-
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
|
121
|
-
<span class="visually-hidden">Next</span>
|
|
122
|
-
</button>
|
|
123
63
|
</div>
|
|
64
|
+
<button class="carousel-control-prev" type="button" data-bs-target="#contributors-carousel-{{carousel_counter}}" data-bs-slide="prev" style="width: 2rem; margin-left: -1rem; bottom: auto; height: 3rem;">
|
|
65
|
+
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
|
66
|
+
<span class="visually-hidden">Previous</span>
|
|
67
|
+
</button>
|
|
68
|
+
<button class="carousel-control-next" type="button" data-bs-target="#contributors-carousel-{{carousel_counter}}" data-bs-slide="next" style="width: 2rem; margin-right: -1rem; bottom: auto; height: 3rem;">
|
|
69
|
+
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
|
70
|
+
<span class="visually-hidden">Next</span>
|
|
71
|
+
</button>
|
|
72
|
+
</div>
|
|
124
73
|
</div>
|
|
125
74
|
{%- endunless %}
|