elixir-toolkit-theme 5.0.0 → 6.0.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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/_includes/affiliation-logo.html +10 -0
  4. data/_includes/affiliation-tiles-page.html +27 -27
  5. data/_includes/citation-page.html +19 -17
  6. data/_includes/contributor-avatar.html +16 -0
  7. data/_includes/contributor-card.html +33 -0
  8. data/_includes/contributor-carousel-selection.html +17 -68
  9. data/_includes/contributor-minitiles-page.html +18 -107
  10. data/_includes/contributor-tiles-all.html +8 -61
  11. data/_includes/github-buttons.html +14 -14
  12. data/_includes/head.html +3 -3
  13. data/_includes/more-information-tiles.html +5 -5
  14. data/_includes/page-metadata-tabs.html +92 -0
  15. data/_includes/resource-table-all.html +28 -16
  16. data/_includes/scroll-top.html +1 -1
  17. data/_includes/section-navigation-tiles.html +10 -5
  18. data/_includes/sidebar.html +58 -42
  19. data/_includes/toc.html +1 -1
  20. data/_includes/topnav.html +2 -1
  21. data/_layouts/default.html +3 -3
  22. data/_layouts/page.html +4 -4
  23. data/_sass/_bootstrap_variables.scss +2 -1
  24. data/_sass/_variables.scss +11 -17
  25. data/assets/css/main.scss +235 -107
  26. data/assets/img/apple-touch-icon.png +0 -0
  27. data/assets/img/favicon.svg +24 -0
  28. data/assets/img/site.webmanifest +19 -17
  29. data/assets/img/web-app-manifest-192x192.png +0 -0
  30. data/assets/img/web-app-manifest-512x512.png +0 -0
  31. data/assets/js/main.js +133 -22
  32. data/assets/js/toc.js +5 -3
  33. metadata +11 -8
  34. data/assets/img/android-chrome-192x192.png +0 -0
  35. data/assets/img/android-chrome-512x512.png +0 -0
  36. data/assets/img/safari-pinned-tab.svg +0 -29
  37. data/assets/js/jquery.navgoco.js +0 -314
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28d3405180b694d3008b2189a0bb9a16ee0ea46295d1d9e1f54b0c0615dc08c1
4
- data.tar.gz: b84be0a971922c139d39379443cddd58f07514d5578c7d38364dc1361c63484f
3
+ metadata.gz: e056672e004a2c043dba792f32755cd49be63a9c9f6f04af3e60d6134204908d
4
+ data.tar.gz: a9ad5a24a302317452020fdb4647187e7795f26a8c698398683d2b2f1ce38570
5
5
  SHA512:
6
- metadata.gz: e72c7d4ed2724a743f37e71223547bdfa2dbd472d050ecb4a8e130d6081bf3c4a1bd9fbd2d4136c58616484bd7bb189a472ca203953944a08f41914175e89180
7
- data.tar.gz: 3effd307d58a441330ef53c2b76377d41dac38552bf881e0c87d4f1d844acdf21fc9e1130945ffbb6a8d0389c8a921b59dfe453f4948741de552c405d25c40a6
6
+ metadata.gz: 8ca08bd09ef240f7e17cca76dc31ba86716767358fe36662c984be035150a6ed4bd88fcbdf4994b493b0cc2fe253f1e92ed0e57f89e1460004915b4fd2d52ea7
7
+ data.tar.gz: d388f54594ffc120a96c9f781eb561f22761e4080ca04e3a0c25ab81e27e9e62c4d577c90661175a664664241848ef86d8e65fbcd6834830e7ccaf61b524e02a
data/README.md CHANGED
@@ -164,7 +164,7 @@ This will start the docker container and serve the website locally. Make sure th
164
164
  - [TRE-FX](https://trefx.uk/) (DARE UK, HDR UK)
165
165
  - [Norwegian Life Science RDM LookUp](https://elixir.no/rdm-lookup/) (ELIXIR Norway)
166
166
  - [RSQkit: Research Software Quality kit](https://everse.software/RSQKit/) (EOSC-EVERSE)
167
- - [dHMp norge](https://dhp-stottepakke.github.io/pages/) (ELIXIR Norway)
167
+ - [research-data.no](https://plan.research-data.no/pages/) (ELIXIR Norway & BOTT universities Norway)
168
168
  - [Learning-Library](https://patcapon39.github.io/Learning-Library/) (Australian BioCommons)
169
169
  - [ELIXIR-IT Training Platform](https://elixir-iib-training.github.io/site/training_courses) (ELIXIR IT)
170
170
  - [FAIRDOM-SEEK Documentation](https://docs.seek4science.org/) (SEEK community)
@@ -173,6 +173,8 @@ This will start the docker container and serve the website locally. Make sure th
173
173
  - [Fed-A-Crate](https://elixir-europe.github.io/fed-a-crate/how-to-contribute) (ELIXIR Fed-A-Crate project)
174
174
  - [Federated Learning toolkit (FLkit)](https://uhasselt-biomedicaldatasciences.github.io/federated-learning-toolkit/) (UHasselt)
175
175
  - [mTeSS-X](https://elixirtess.github.io/mTeSS-X/) (OSCARS project)
176
+ - [Galaxy Codex](https://galaxyproject.github.io/galaxy_codex/) (Galaxy Community)
177
+ - [ELIXIR Software Management Plan](https://elixir-europe.github.io/software-management-plans/community/) (ELIXIR SMP Community)
176
178
  - Want your instance here? [Open an issue](https://github.com/ELIXIR-Belgium/elixir-toolkit-theme/issues)
177
179
 
178
180
  ## Dependencies
@@ -185,7 +187,6 @@ This theme would not be possible without following open source projects:
185
187
  - [lunr.js](https://github.com/olivernn/lunr.js) - Main tool behind the search bar enabling content search
186
188
  - [jQuery](https://github.com/jquery/jquery) - A fast, small, and feature-rich JavaScript library for easy scripting
187
189
  - [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
190
  - [Font-Awesome](https://github.com/FortAwesome/Font-Awesome) - The famous icon library
190
191
  - [flag-icons](https://github.com/lipis/flag-icons) - A curated collection of all country flags in SVG + css integration
191
192
  - [clipboard.js](https://github.com/zenorocha/clipboard.js) - Modern copy to clipboard. No Flash. Just 3kb gzipped clipboard.
@@ -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
- {%- if page.affiliations and page.affiliations.size != 0 %}
2
- <span class="d-block h2-like fs-2">{{site.theme_variables.headings.affiliation-tiles-page | default: 'Affiliations' }}</span>
3
- <div class="mt-4 d-flex flex-wrap gap-2">
4
- {%- assign affiliations = site.data.affiliations %}
5
- {%- assign page_affiliations = page.affiliations | sort %}
6
- {%- assign allcountries = site.data.countries %}
7
- {%- for affiliation in page_affiliations %}
8
- {%- if affiliation.size == 2 %}
9
- {%- assign country = affiliation | upcase %}
10
- {%- assign country_link = site.pages | where:"country_code",country | first %}
11
- {%- if country_link %}
12
- <a role="button" href="{{country_link.url | relative_url}}" data-bs-toggle="tooltip" title="{{allcountries[country]}}" class="btn btn-sm d-flex align-items-center contributor-link hover-primary">
13
- {%- else %}
14
- <a role="button" data-bs-toggle="tooltip" title="{{allcountries[country]}}" class="btn btn-sm contributor-link d-flex align-items-center hover-primary disabled border-white" aria-disabled="true">
15
- {%- endif %}
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
- <div class="ratio ratio-4x3">
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
- </a>
23
- {%- else %}
24
- {%- assign affiliation_info = affiliations | where:"name",affiliation | first %}
25
- <a class="btn btn-sm contributor-link d-flex align-items-center justify-content-center hover-primary" data-bs-toggle="tooltip" title="{{affiliation_info.name}}" href="{{affiliation_info.url}}">
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
- </a>
28
- {%- endif %}
29
- {%- endfor %}
28
+ </a>
29
+ {%- endif -%}
30
+ {%- endfor -%}
30
31
  </div>
31
- {%- endif %}
@@ -1,19 +1,21 @@
1
- {% if page.page_citation and page.title %}
2
- <h2>How to cite this page</h2>
3
- <p>
4
- {% if page.contributors %}
5
- {{ page.contributors | join: ", " }},
6
- {% endif %}
7
- "<em>{{ page.title }}</em>".
8
- {% if site.url %}
9
- {{ site.url | remove: "https://www." | remove: "http://www." | remove: "https://" | remove: "http://" }}.
10
- {% endif %}
11
- {% assign page_url = page.url | absolute_url %}
12
- <a href="{{ page_url }}">{{ page_url }}</a> <span id="current_date"></span>.
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
- var current_date = new Date().toLocaleDateString('en-uk', { year:"numeric", month:"long", day:"numeric"})
16
- document.getElementById("current_date").textContent = "(accessed " + current_date + ")";
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 contributors = site.data.CONTRIBUTORS %}
2
+ {%- assign contributors_lookup = site.data.CONTRIBUTORS %}
3
3
  {%- assign allcontrstr = nil %}
4
- {%- assign nr = include.col | default: 5 %}
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 contributors %}
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 contributors %}
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 contributor in allcontributors %}
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
- <div class="card h-100">
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 %}
@@ -1,111 +1,22 @@
1
- {%- assign EMPTY = "" | split: "" -%}
2
- {%- assign contrib_list = page.contributors | default: EMPTY -%}
3
- {%- assign coord_list = page.coordinators | default: EMPTY -%}
4
- {%- if contrib_list.size > 0 or coord_list.size > 0 -%}
5
- <span class="d-block h2-like fs-2">{{site.theme_variables.contributor-minitiles-page | default: 'Contributors' }}</span>
6
- <div class="p-4 rounded mt-4 page-contributors d-flex flex-wrap gap-2">
7
- {%- assign contributors = site.data.CONTRIBUTORS %}
8
- {%- assign page_contributors = contrib_list | concat: coord_list | uniq %}
9
- {%- unless include.sort == false %}
10
- {%- assign page_contributors = page_contributors | sort %}
11
- {%- endunless %}
12
- {%- for contributor in page_contributors %}
13
- {%- assign id = contributors[contributor].git | default: 'no_github' %}
1
+ {%- assign contributors_lookup = site.data.CONTRIBUTORS %}
2
+ {%- unless include.sort == false %}
3
+ {%- assign name_list = include.contributors_list | sort %}
4
+ {%- else %}
5
+ {%- assign name_list = include.contributors_list %}
6
+ {%- endunless %}
7
+ <div class="gap-1 rounded page-contributors d-flex flex-wrap">
8
+ {%- for contributor_name in name_list %}
9
+ {%- assign data = contributors_lookup[contributor_name] %}
14
10
  <div class="dropup-center dropup d-inline-block">
15
- <button class="btn btn-sm dropdown-toggle contributor-link d-flex gap-2 align-items-center hover-primary position-relative" type="button" data-bs-toggle="dropdown" aria-expanded="false" data-bs-auto-close="outside" data-bs-offset="0,10">
16
- <div>
17
- {%- if contributors[contributor].image_url %}
18
- <div class="ratio ratio-1x1 contributor-img-sm">
19
- <div class="contr-placeholder rounded-circle" style="background-image: url({{ contributors[contributor].image_url }});">
20
- </div>
21
- </div>
22
- {%- else %}
23
- {%- if contributors[contributor].git %}
24
- <img class="img-fluid rounded-circle contributor-img-sm" src="https://avatars.githubusercontent.com/{{ id }}" alt="Avatar of the contributor {{ contributor }}">
25
- {%- else %}
26
- <div class="contr-placeholder rounded-circle d-flex justify-content-center align-items-center contributor-img-sm">
27
- {%- assign contr_name = contributor | split: " " %}
28
- {%- assign initials = "" %}
29
- {%- for name in contr_name %}
30
- {%- assign initial = name | slice: 0,1 | capitalize %}
31
- {%- assign initials = initials | append: initial %}
32
- {%- endfor %}
33
- <span class="fw-bold">{{ initials }}</span>
34
- </div>
35
- {%- endif %}
36
- {%- endif %}
37
- </div>
38
- <div>
39
- {{ contributor }}
40
- </div>
41
- {%- if page.coordinators.size != 0 and page.coordinators contains contributor %}
42
- <div class="position-absolute top-0 start-100 translate-middle">
43
- <div class="rounded-circle coordinator-crown">
44
- <a data-bs-toggle="tooltip" data-bs-original-title="Coordinator of the {{page.title}} page.">
45
- <i class="fa-solid fa-crown"></i>
46
- </a>
47
- </div>
11
+ <button class="btn btn-sm dropdown-toggle contributor-link d-flex gap-2 align-items-center hover-primary rounded-pill" type="button" data-bs-toggle="dropdown" aria-expanded="false" data-bs-auto-close="outside" data-bs-offset="0,10">
12
+ <div class="ratio ratio-1x1 contributor-img-sm">
13
+ {%- include contributor-avatar.html name=contributor_name image_url=data.image_url git=data.git small=true %}
48
14
  </div>
49
- {%- endif %}
15
+ <div>{{ contributor_name }}</div>
50
16
  </button>
51
- <div class="dropdown-menu shadow p-0 border-0 contributor-cards">
52
-
53
- <div class="card">
54
- {%- assign id = contributors[contributor].git | default: 'no_github' %}
55
- <div class="position-relative">
56
- {%- if contributors[contributor].image_url %}
57
- <div class="p-3">
58
- <div class="ratio ratio-1x1">
59
- <div class="contr-placeholder rounded-circle" style="background-image: url({{ contributors[contributor].image_url }});">
60
- </div>
61
- </div>
62
- </div>
63
- {%- else %}
64
- {%- if contributors[contributor].git %}
65
- <img src="https://avatars.githubusercontent.com/{{id}}" class="card-img-top p-3 rounded-circle" alt="{{ contributor }}">
66
- {%- else %}
67
- <div class="p-3">
68
- <div class="ratio ratio-1x1">
69
- <div class="contr-placeholder rounded-circle d-flex justify-content-center align-items-center">
70
- {%- assign contr_name = contributor | split: " " %}
71
- {%- assign initials = "" %}
72
- {%- for name in contr_name %}
73
- {%- assign initial = name | slice: 0,1 | capitalize %}
74
- {%- assign initials = initials | append: initial %}
75
- {%- endfor %}
76
- <span class="fs-2 fw-bold">{{ initials }}</span>
77
- </div>
78
- </div>
79
- </div>
80
- {%- endif %}
81
- {%- endif %}
82
- {%- if contributors[contributor].role %}
83
- <span class="badge position-absolute top-0 end-0">{{ contributors[contributor].role | capitalize }}</span>
84
- {%- endif %}
85
- </div>
86
- <div class="card-body text-center py-0">
87
- <p class="card-title">{{ stripped_name }}</p>
88
- {%- if contributors[contributor].affiliation %}
89
- <p class="card-affiliation">{{ contributors[contributor].affiliation | join: " / " }}</p>
90
- {%- endif %}
91
- </div>
92
- {%- if contributors[contributor].git or contributors[contributor].email or contributors[contributor].orcid %}
93
- <div class="card-footer">
94
- <div class="d-flex justify-content-center gap-2">
95
- {%- if contributors[contributor].git %}
96
- <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>
97
- {%- endif %}
98
- {%- if contributors[contributor].email %}
99
- <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>
100
- {%- endif %}
101
- {%- if contributors[contributor].orcid %}
102
- <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>
103
- {%- endif %}
104
- </div>
105
- </div>
106
- {%- endif %}
107
- </div>
108
- </div>
109
- </div>{%- endfor %}
17
+ <div class="dropdown-menu shadow p-0 border-0 contributor-cards">
18
+ {%- 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 %}
19
+ </div>
20
+ </div>
21
+ {%- endfor %}
110
22
  </div>
111
- {%- endif %}
@@ -1,11 +1,11 @@
1
- {%- assign contributors = site.data.CONTRIBUTORS %}
1
+ {%- assign contributors_lookup = site.data.CONTRIBUTORS %}
2
2
  {%- assign allcontrstr = nil %}
3
- {%- assign nr = include.col | default: 5 %}
3
+ {%- assign nr = include.col | default: 4 %}
4
4
  {%- if include.custom %}
5
5
  {%- assign allcontrstr = include.custom %}
6
6
  {%- elsif include.role %}
7
7
  {%- assign rolefilter = include.role | downcase %}
8
- {%- for contr in contributors %}
8
+ {%- for contr in contributors_lookup %}
9
9
  {%- assign contrrole = contr[1]['role'] | downcase %}
10
10
  {%- if rolefilter == contrrole %}
11
11
  {%- if allcontrstr %}
@@ -26,7 +26,7 @@
26
26
  {%- endif %}
27
27
  {%- endif %}
28
28
  {%- endfor %}
29
- {%- for contr in contributors %}
29
+ {%- for contr in contributors_lookup %}
30
30
  {%- if allcontrstr %}
31
31
  {%- assign allcontrstr = allcontrstr | append: ", " | append: contr[0] %}
32
32
  {%- else %}
@@ -39,64 +39,11 @@
39
39
  {%- assign allcontributors = allcontributors | sort %}
40
40
  {%- endunless %}
41
41
  {%- unless allcontributors.size == 0 %}
42
- <div class="row row-cols-2 row-cols-sm-3 row-cols-md-4 row-cols-xl-{{nr}} g-4 contributor-cards mb-4">
43
- {%- for contributor in allcontributors %}
42
+ <div class="row row-cols-2 row-cols-sm-3{%- if nr < 4 %} row-cols-md-4{%- endif %} row-cols-xl-{{nr}} g-4 contributor-cards mb-4">
43
+ {%- for contributor_name in allcontributors %}
44
+ {%- assign data = contributors_lookup[contributor_name] %}
44
45
  <div class="col">
45
- <div class="card h-100">
46
- {%- assign id = contributors[contributor].git | default: 'no_github' %}
47
- <div class="position-relative">
48
- {%- if contributors[contributor].image_url %}
49
- <div class="p-3">
50
- <div class="ratio ratio-1x1">
51
- <div class="contr-placeholder rounded-circle" style="background-image: url({{ contributors[contributor].image_url }});">
52
- </div>
53
- </div>
54
- </div>
55
- {%- else %}
56
- {%- if contributors[contributor].git %}
57
- <img src="https://avatars.githubusercontent.com/{{id}}" class="card-img-top p-3 rounded-circle" alt="{{ contributor }}">
58
- {%- else %}
59
- <div class="p-3">
60
- <div class="ratio ratio-1x1">
61
- <div class="contr-placeholder rounded-circle d-flex justify-content-center align-items-center">
62
- {%- assign contr_name = contributor | split: " " %}
63
- {%- assign initials = "" %}
64
- {%- for name in contr_name %}
65
- {%- assign initial = name | slice: 0,1 | capitalize %}
66
- {%- assign initials = initials | append: initial %}
67
- {%- endfor %}
68
- <span class="fs-2 fw-bold">{{ initials }}</span>
69
- </div>
70
- </div>
71
- </div>
72
- {%- endif %}
73
- {%- endif %}
74
- {%- if contributors[contributor].role %}
75
- <span class="badge position-absolute top-0 end-0">{{ contributors[contributor].role | capitalize }}</span>
76
- {%- endif %}
77
- </div>
78
- <div class="card-body text-center py-0">
79
- <p class="card-title">{{ contributor }}</p>
80
- {%- if contributors[contributor].affiliation %}
81
- <p class="card-affiliation">{{ contributors[contributor].affiliation | join: " / " }}</p>
82
- {%- endif %}
83
- </div>
84
- {%- if contributors[contributor].git or contributors[contributor].email or contributors[contributor].orcid %}
85
- <div class="card-footer">
86
- <div class="d-flex justify-content-center gap-2">
87
- {%- if contributors[contributor].git %}
88
- <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>
89
- {%- endif %}
90
- {%- if contributors[contributor].email %}
91
- <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>
92
- {%- endif %}
93
- {%- if contributors[contributor].orcid %}
94
- <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>
95
- {%- endif %}
96
- </div>
97
- </div>
98
- {%- endif %}
99
- </div>
46
+ {%- 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 %}
100
47
  </div>
101
48
  {%- endfor %}
102
49
  </div>
@@ -1,26 +1,26 @@
1
- {%- assign show_github_edit_button = site.theme_variables.github_buttons.edit_me | default: true %}
2
- {%- assign show_github_history_button = site.theme_variables.github_buttons.history | default: true %}
3
- {%- assign show_github_open_issue_button = site.theme_variables.github_buttons.open_issue | default: true %}
4
- {%- if show_github_edit_button or show_github_history_button or show_github_open_issue_button %}
1
+ {%- assign show_github_edit_button = site.theme_variables.github_buttons.edit_me %}
2
+ {%- assign show_github_history_button = site.theme_variables.github_buttons.history %}
3
+ {%- assign show_github_open_issue_button = site.theme_variables.github_buttons.open_issue %}
4
+ {%- unless show_github_edit_button and show_github_history_button and show_github_open_issue_button == false %}
5
5
  <div id="edit-me" class="btn-group">
6
- {% if show_github_edit_button %}
7
- {% assign repo_url = page.github.repository_url | default: site.github.repository_url %}
8
- {% assign repo_branch = page.github.branch | default: site.github.source.branch %}
9
- {% assign file_path = page.github.file_path | default: page.path %}
6
+ {%- unless show_github_edit_button == false %}
7
+ {%- assign repo_url = page.github.repository_url | default: site.github.repository_url %}
8
+ {%- assign repo_branch = page.github.branch | default: site.github.source.branch %}
9
+ {%- assign file_path = page.github.file_path | default: page.path %}
10
10
  <a role="button" data-bs-toggle="tooltip"
11
11
  title="Propose changes to the content of this page on {{site.theme_variables.git_host | default: 'GitHub' }}"
12
12
  href="{{repo_url}}/blob/{{repo_branch}}/{{file_path}}" class="btn btn-sm hover-primary text-primary"><i
13
13
  class="fa-solid fa-pencil-alt"></i></a>
14
- {%- endif %}
15
- {%- if show_github_open_issue_button %}
14
+ {%- endunless %}
15
+ {%- unless show_github_open_issue_button == false %}
16
16
  <a role="button" data-bs-toggle="tooltip" title="Report an issue"
17
17
  href="{{repo_url}}/issues/new?title={{'Issue on page: ' | url_encode }}{{page.title | url_encode }}&amp;body={{'I would like to report an issue on the ' | url_encode }}{{page.title | url_encode }}{{' page at `'| url_encode }}{{page.url | url_encode }}{{'`. Description of the issue:' | url_encode }}"
18
18
  class="btn btn-sm hover-primary text-primary"><i class="fa-solid fa-exclamation"></i></a>
19
- {%- endif %}
20
- {%- if show_github_history_button %}
19
+ {%- endunless %}
20
+ {%- unless show_github_history_button == false %}
21
21
  <a role="button" data-bs-toggle="tooltip" title="Check out the history of this page"
22
22
  href="{{repo_url}}/commits/{{repo_branch}}/{{file_path}}" class="btn btn-sm hover-primary text-primary"><i
23
23
  class="fa-solid fa-history"></i></a>
24
- {%- endif %}
24
+ {%- endunless %}
25
25
  </div>
26
- {%- endif %}
26
+ {%- endunless %}
data/_includes/head.html CHANGED
@@ -31,8 +31,8 @@
31
31
  <meta property="og:type" content="article">
32
32
  <meta property="og:url" content="{{ page.url | absolute_url }}">
33
33
  <meta property="og:image" content="//{{site.github.url | remove: 'https://' | remove: 'http://'}}/assets/img/apple-touch-icon.png" />
34
+ <meta property="og:logo" content="//{{site.github.url | remove: 'https://' | remove: 'http://'}}/assets/img/apple-touch-icon.png" />
34
35
  <meta name="apple-mobile-web-app-title" content="{{title}}">
35
- <meta name="msapplication-TileColor" content="#{{site.theme_variables.theme_color | default: 0d6efd }}">
36
36
  <meta name="theme-color" content="#{{site.theme_variables.theme_color | default: 0d6efd }}">
37
37
  {%- if page.no_robots %}
38
38
  <meta name="robots" content="noindex" />
@@ -57,9 +57,10 @@
57
57
  <script src="{{ 'assets/js/bootstrap.bundle.min.js' | relative_url }}"></script>
58
58
  <script src="{{ 'assets/js/anchor.min.js' | relative_url }}"></script>
59
59
  {% if page.toc or page.toc == nil %}<script src="{{ 'assets/js/toc.js' | relative_url }}?{{site.time | date: '%s'}}"></script>{% endif %}
60
- <script src="{{ 'assets/js/jquery.navgoco.js' | relative_url }}"></script>
61
60
  <script src="{{ 'assets/js/main.js' | relative_url }}?{{site.time | date: '%s'}}"></script>
61
+ {%- unless site.theme_variables.topnav.search == false %}
62
62
  <script src="{{ 'assets/js/search.js' | relative_url }}"></script>
63
+ {%- endunless %}
63
64
  <script src="{{ 'assets/js/clipboard.min.js' | relative_url }}"></script>
64
65
  {%- if page.datatable == true %}
65
66
  <!-- Include the standard DataTables bits -->
@@ -112,7 +113,6 @@
112
113
  <link rel="icon" type="image/png" sizes="32x32" href="{{ 'assets/img/favicon-32x32.png' | relative_url }}">
113
114
  <link rel="icon" type="image/png" sizes="16x16" href="{{ 'assets/img/favicon-16x16.png' | relative_url }}">
114
115
  <link rel="manifest" href="{{ 'assets/img/site.webmanifest' | relative_url }}">
115
- <link rel="mask-icon" href="{{ 'assets/img/safari-pinned-tab.svg' | relative_url }}" color="#{{site.theme_variables.theme_color | default: 0d6efd }}">
116
116
  <link rel="shortcut icon" href="{{ 'assets/img/favicon.ico' | relative_url }}">
117
117
  <!-- Schema.org metadata -->
118
118
  {% include schemasorg.html %}