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
@@ -63,7 +63,7 @@
63
63
  {%- if actual_fairsharing %}
64
64
  <!-- FAIRsharing -->
65
65
  <a data-bs-toggle="collapse" href="#fairsharing_collapse" role="button" aria-expanded="false" aria-controls="fairsharing_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
66
- <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to FAIRsharing</h3><i class="fa-solid fa-chevron-down fs-5"></i>
66
+ <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to FAIRsharing</h3><i class="fa-solid fa-chevron-right fs-5"></i>
67
67
  </a>
68
68
  <div class="collapse info-card" id="fairsharing_collapse">
69
69
  <div class="mt-2 p-3 pb-5">
@@ -85,7 +85,7 @@
85
85
  {%- if actual_faircookbook %}
86
86
  <!-- FAIR Cookbook -->
87
87
  <a data-bs-toggle="collapse" href="#faircookbook_collapse" role="button" aria-expanded="false" aria-controls="faircookbook_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
88
- <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to FAIR Cookbook</h3><i class="fa-solid fa-chevron-down fs-5"></i>
88
+ <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to FAIR Cookbook</h3><i class="fa-solid fa-chevron-right fs-5"></i>
89
89
  </a>
90
90
  <div class="collapse info-card" id="faircookbook_collapse">
91
91
  <div class="mt-2 p-3 pb-5">
@@ -107,7 +107,7 @@
107
107
  {%- if actual_dsw %}
108
108
  <!-- DSW -->
109
109
  <a data-bs-toggle="collapse" href="#dsw_collapse" role="button" aria-expanded="false" aria-controls="dsw_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
110
- <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to DSW</h3><i class="fa-solid fa-chevron-down fs-5"></i>
110
+ <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to DSW</h3><i class="fa-solid fa-chevron-right fs-5"></i>
111
111
  </a>
112
112
  <div class="collapse info-card" id="dsw_collapse">
113
113
  <div class="mt-2 p-3 pb-5">
@@ -129,7 +129,7 @@
129
129
  {%- if actual_rdmkit %}
130
130
  <!-- RDMkit -->
131
131
  <a data-bs-toggle="collapse" href="#rdmkit_collapse" role="button" aria-expanded="false" aria-controls="rdmkit_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
132
- <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to RDMkit</h3><i class="fa-solid fa-chevron-down fs-5"></i>
132
+ <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Links to RDMkit</h3><i class="fa-solid fa-chevron-right fs-5"></i>
133
133
  </a>
134
134
  <div class="collapse info-card" id="rdmkit_collapse">
135
135
  <div class="mt-2 p-3 pb-5">
@@ -152,7 +152,7 @@
152
152
  {%- if actual_training %}
153
153
  <!-- Training -->
154
154
  <a data-bs-toggle="collapse" href="#training_collapse" role="button" aria-expanded="false" aria-controls="training_collapse" class="d-flex align-items-baseline pb-3 border-top info-collapse">
155
- <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Training</h3><i class="fa-solid fa-chevron-down fs-5"></i>
155
+ <h3 class="mb-0 flex-grow-1 mt-3 text-dark">Training</h3><i class="fa-solid fa-chevron-right fs-5"></i>
156
156
  </a>
157
157
  <div class="collapse info-card" id="training_collapse">
158
158
  <div class="mt-2 p-3 pb-5">
@@ -0,0 +1,92 @@
1
+ {%- comment -%} Check if any tab has actual content (not empty arrays) {%- endcomment -%}
2
+ {%- assign has_contributors = false -%}
3
+ {%- assign has_coordinators = false -%}
4
+ {%- assign has_editors = false -%}
5
+ {%- assign has_affiliations = false -%}
6
+ {%- assign has_citations = false -%}
7
+
8
+ {%- if page.contributors and page.contributors.size > 0 -%}{%- assign has_contributors = true -%}{%- endif -%}
9
+ {%- if page.coordinators and page.coordinators.size > 0 -%}{%- assign has_coordinators = true -%}{%- endif -%}
10
+ {%- if page.editors and page.editors.size > 0 -%}{%- assign has_editors = true -%}{%- endif -%}
11
+ {%- if page.affiliations and page.affiliations.size > 0 -%}{%- assign has_affiliations = true -%}{%- endif -%}
12
+ {%- if page.page_citation -%}{%- assign has_citations = true -%}{%- endif -%}
13
+
14
+ {% if has_contributors or has_coordinators or has_editors or has_affiliations or has_citations %}
15
+
16
+ {%- comment -%} Determine which tab should be active by default {%- endcomment -%}
17
+ {%- assign first_tab = nil -%}
18
+ {%- unless first_tab -%}{%- if has_contributors -%}{%- assign first_tab = "contributors" -%}{%- endif -%}{%- endunless -%}
19
+ {%- unless first_tab -%}{%- if has_coordinators -%}{%- assign first_tab = "coordinators" -%}{%- endif -%}{%- endunless -%}
20
+ {%- unless first_tab -%}{%- if has_editors -%}{%- assign first_tab = "editors" -%}{%- endif -%}{%- endunless -%}
21
+ {%- unless first_tab -%}{%- if has_affiliations -%}{%- assign first_tab = "affiliations" -%}{%- endif -%}{%- endunless -%}
22
+ {%- unless first_tab -%}{%- if has_citations -%}{%- assign first_tab = "citations" -%}{%- endif -%}{%- endunless -%}
23
+
24
+ <div class="page-metadata p-4 mt-5 rounded">
25
+ <nav>
26
+ <div class="nav nav-tabs mb-3" id="nav-credits" role="tablist">
27
+ {%- if has_contributors %}
28
+ <button class="nav-link {% if first_tab == 'contributors' %}active{% endif %}" id="credits-contributors-tab" data-bs-toggle="tab" data-bs-target="#credits-contributors" type="button" role="tab" aria-controls="credits-contributors" aria-selected="{% if first_tab == 'contributors' %}true{% else %}false{% endif %}">
29
+ <i class="fa-solid fa-users me-2"></i>
30
+ Contributors
31
+ </button>
32
+ {%- endif %}
33
+ {%- if has_coordinators %}
34
+ <button class="nav-link {% if first_tab == 'coordinators' %}active{% endif %}" id="credits-coordinators-tab" data-bs-toggle="tab" data-bs-target="#credits-coordinators" type="button" role="tab" aria-controls="credits-coordinators" aria-selected="{% if first_tab == 'coordinators' %}true{% else %}false{% endif %}">
35
+ <i class="fa-solid fa-crown me-2"></i>
36
+ Coordinators
37
+ </button>
38
+ {%- endif %}
39
+ {%- if has_editors %}
40
+ <button class="nav-link {% if first_tab == 'editors' %}active{% endif %}" id="credits-editors-tab" data-bs-toggle="tab" data-bs-target="#credits-editors" type="button" role="tab" aria-controls="credits-editors" aria-selected="{% if first_tab == 'editors' %}true{% else %}false{% endif %}">
41
+ <i class="fa-solid fa-comment-dots me-2"></i>
42
+ Editors
43
+ </button>
44
+ {% endif %}
45
+ {%- if has_affiliations %}
46
+ <button class="nav-link {% if first_tab == 'affiliations' %}active{% endif %}" id="credits-affiliations-tab" data-bs-toggle="tab" data-bs-target="#credits-affiliations" type="button" role="tab" aria-controls="credits-affiliations" aria-selected="{% if first_tab == 'affiliations' %}true{% else %}false{% endif %}">
47
+ <i class="fa-solid fa-building-columns me-2"></i>
48
+ Affiliations
49
+ </button>
50
+ {%- endif %}
51
+ {%- if has_citations %}
52
+ <button class="nav-link {% if first_tab == 'citations' %}active{% endif %}" id="credits-cite-tab" data-bs-toggle="tab" data-bs-target="#credits-citations" type="button" role="tab" aria-controls="credits-cite" aria-selected="{% if first_tab == 'citations' %}true{% else %}false{% endif %}">
53
+ <i class="fa-solid fa-quote-left me-2"></i>
54
+ Citation
55
+ </button>
56
+ {%- endif %}
57
+ </div>
58
+ </nav>
59
+
60
+ <div class="tab-content" id="nav-creditsContent">
61
+ {%- if has_contributors %}
62
+ <div class="tab-pane {% if first_tab == 'contributors' %}show active{% endif %}" id="credits-contributors" role="tabpanel">
63
+ {% include contributor-minitiles-page.html contributors_list=page.contributors sort=site.theme_variables.page_metadata.contributors_sort %}
64
+ </div>
65
+ {%- endif %}
66
+ {%- if has_coordinators %}
67
+ <div class="tab-pane {% if first_tab == 'coordinators' %}show active{% endif %}" id="credits-coordinators" role="tabpanel">
68
+ <div class="coordinators">
69
+ {% include contributor-minitiles-page.html contributors_list=page.coordinators sort=site.theme_variables.page_metadata.coordinators_sort %}
70
+ </div>
71
+ </div>
72
+ {%- endif %}
73
+ {%- if has_editors %}
74
+ <div class="tab-pane {% if first_tab == 'editors' %}show active{% endif %}" id="credits-editors" role="tabpanel">
75
+ <div class="editors">
76
+ {% include contributor-minitiles-page.html contributors_list=page.editors sort=site.theme_variables.page_metadata.editors_sort %}
77
+ </div>
78
+ </div>
79
+ {%- endif %}
80
+ {%- if has_affiliations %}
81
+ <div class="tab-pane {% if first_tab == 'affiliations' %}show active{% endif %}" id="credits-affiliations" role="tabpanel">
82
+ {% include affiliation-tiles-page.html affiliations_list=page.affiliations sort=site.theme_variables.page_metadata.affiliations_sort %}
83
+ </div>
84
+ {%- endif %}
85
+ {%- if has_citations %}
86
+ <div class="tab-pane {% if first_tab == 'citations' %}show active{% endif %}" id="credits-citations" role="tabpanel">
87
+ {% include citation-page.html contributors_list=page.contributors sort=site.theme_variables.page_metadata.contributors_sort %}
88
+ </div>
89
+ {%- endif %}
90
+ </div>
91
+ </div>
92
+ {% endif %}
@@ -26,7 +26,7 @@
26
26
  {%- endif %}
27
27
  {% if site.theme_variables.headings.resource-table-all-collapse %}<h3 class="mb-0 mt-3 flex-grow-1 text-dark">{% else %}<h2 class="h2-like fs-2">{% endif %}{{site.theme_variables.headings.resource-table-all | default: 'Tools and resources on this page' }}{% if site.theme_variables.headings.resource-table-all-collapse %}</h3>{% else % %}</h2>{% endif %}
28
28
  {%- if site.theme_variables.headings.resource-table-all-collapse %}
29
- <i class="fa-solid fa-chevron-down fs-5"></i>
29
+ <i class="fa-solid fa-chevron-right fs-5"></i>
30
30
  </a>
31
31
  <div class="collapse info-card" id="tools_collapse">
32
32
  {%- endif %}
@@ -57,21 +57,14 @@
57
57
  <tbody>
58
58
  {%- for tool in tools %}
59
59
  <tr>
60
- {%- assign instances_tool = 0 %}
61
- {%- assign query = "related_pages." | append: page.type %}
62
- {%- for country_page in country_pages %}
63
- {%- assign instance_matches = country_page.national_resources | where: "instance_of", tool.id | where_exp:"resource","resource.related_pages != nil" | where: query, include.tag %}
64
- {%- unless instance_matches.size == 0 %}
65
- {%- assign instances_tool = instances_tool | plus: instance_matches.size %}
66
- {%- endunless %}
67
- {%- endfor %}
60
+ {%- assign instances_tool = tool.instances | size %}
68
61
  {% if tool.url %}
69
62
  <td><a href="{{tool.url}}">{{tool.name}}</a></td>
70
63
  {%- else %}
71
64
  <td>{{tool.name}}</td>
72
65
  {%- endif %}
73
66
  <td>{{tool.description}}
74
- {%- if tool.instance_of or tool.how_to_access or instances_tool != 0 != 0 and include.tag != nil %}
67
+ {%- if tool.instance_of or tool.how_to_access or instances_tool != 0 %}
75
68
  {%- assign linked_tool = site.data.tool_and_resource_list | where:"id", tool.instance_of | first %}
76
69
  <div class="d-block mt-1">
77
70
  {%- if linked_tool %}
@@ -80,11 +73,30 @@
80
73
  {%- if tool.how_to_access %}
81
74
  <span class="d-inline-block" tabindex="0" data-bs-toggle="tooltip" title="{{tool.how_to_access}}"><span class="badge text-primary border border-primary"> <i class="fa-solid fa-key"></i></span></span>
82
75
  {%- endif %}
83
- {%- unless instances_tool == 0 or include.tag == nil %}
84
- <!-- <a href="#national-resources-button">
85
- <span class="badge text-white bg-primary"><i class="fa-solid fa-arrow-circle-down me-2"></i>Different instances available</span>
86
- </a> -->
87
- {%- endunless %}
76
+ {%- if instances_tool > 0 %}
77
+ {%- assign dropdown_id = 'instances-dd-' | append: forloop.index0 %}
78
+ <div class="dropdown d-inline-block">
79
+ <button class="btn btn-badge btn-outline-primary dropdown-toggle"
80
+ type="button"
81
+ id="{{ dropdown_id }}"
82
+ data-bs-toggle="dropdown"
83
+ aria-expanded="false">
84
+ <i class="fa-solid fa-globe me-2"></i>Instances
85
+ </button>
86
+ <ul class="dropdown-menu" aria-labelledby="{{ dropdown_id }}">
87
+ {%- for inst in tool.instances %}
88
+ <li>
89
+ <a class="dropdown-item no-ext-icon" href="{{ inst.url }}">
90
+ {{ inst.name }}
91
+ {%- if inst.country_code.size != 0 %}
92
+ <span class="flag-icon ms-2 shadow-sm flag-icon-{{ inst.country_code | downcase }}"></span>
93
+ {%- endif %}
94
+ </a>
95
+ </li>
96
+ {%- endfor %}
97
+ </ul>
98
+ </div>
99
+ {%- endif %}
88
100
  </div>
89
101
  {%- endif %}
90
102
  </td>
@@ -137,7 +149,7 @@
137
149
  {%- endif %}
138
150
  <h3 class="{% if site.theme_variables.headings.resource-table-all-collapse %}mb-0 mt-3 flex-grow-1 text-dark {% endif %}">National resources</h3>
139
151
  {%- if site.theme_variables.headings.resource-table-all-collapse %}
140
- <i class="fa-solid fa-chevron-down fs-5"></i>
152
+ <i class="fa-solid fa-chevron-right fs-5"></i>
141
153
  </a>
142
154
  <div class="collapse info-card" id="nat_tools_collapse">
143
155
  {%- endif %}
@@ -1,5 +1,5 @@
1
1
  {%- if site.theme_variables.back_to_top or site.theme_variables.back_to_top == nil %}
2
2
  <button id="back-to-top" class="btn btn-primary btn-sm rounded-pill" type="button" aria-hidden="true" onclick="topFunction()">
3
- <i class="fa-solid fa-arrow-up"></i>
3
+ <i class="fa-solid fa-arrow-up"></i><span class="visually-hidden">Back to top button</span>
4
4
  </button>
5
5
  {%- endif %}
@@ -164,7 +164,7 @@
164
164
  }
165
165
  const cols = document.querySelectorAll(".navigation-tiles .col");
166
166
  for (col of cols) {
167
- const colCategories = col.getAttribute("data-affiliations").split(" ");
167
+ const colCategories = (col.getAttribute("data-affiliations") ?? "").split(" ");
168
168
  if (colCategories.indexOf(this.value) != -1 || this.value === "reset") {
169
169
  col.classList.remove("d-none");
170
170
  } else {
@@ -181,7 +181,7 @@
181
181
  document.getElementById("affiliations-input").selectedIndex = null;
182
182
  const cols = document.querySelectorAll(".navigation-tiles .col");
183
183
  for (col of cols) {
184
- const colCategories = col.getAttribute("data-affiliations").split(" ");
184
+ const colCategories = (col.getAttribute("data-affiliations") ?? "").split(" ");
185
185
  col.classList.remove("d-none");
186
186
  }
187
187
  }
@@ -198,13 +198,17 @@
198
198
  const input = document.getElementById("title-search");
199
199
  if (input) {
200
200
  const cols = document.querySelectorAll(".navigation-tiles .col");
201
- let filter = input.value.toLowerCase();
201
+ const filter = input.value.toLowerCase();
202
+
202
203
  var affiliations = document.getElementById('affiliations-input');
203
204
  if (affiliations) {
204
205
  document.getElementById("affiliations-input").selectedIndex = null;
205
206
  }
207
+
206
208
  for (let i = 0; i < cols.length; i++) {
207
- let body = cols[i].querySelector(".card-body");
209
+ let body = cols[i].querySelector(".card-body") || cols[i].querySelector(".section-title");
210
+ if (!body) continue; // skip cols that don’t have searchable content
211
+
208
212
  if (body.innerText.toLowerCase().indexOf(filter) > -1) {
209
213
  cols[i].classList.remove("d-none");
210
214
  } else {
@@ -212,7 +216,8 @@
212
216
  }
213
217
  }
214
218
  }
215
- }
219
+ };
220
+
216
221
  $(document).ready(function () {
217
222
  var clearsearch = document.getElementById("clearsearch");
218
223
  if (clearsearch) {
@@ -9,39 +9,46 @@
9
9
  <button class="btn text-start d-lg-none hover-primary collapsed sidebar-collapse w-100 mb-3" type="button" data-bs-toggle="collapse" data-bs-target="#side-nav" aria-controls="side-nav" aria-expanded="true" aria-label="Toggle navigation">
10
10
  {{ page.sidebar | capitalize | replace: "_", " " }} menu <i title="navbar-toggler" class="fa-solid fa-bars ms-2"></i>
11
11
  </button>
12
- <nav class="collapse" id="side-nav" aria-label="Side navigation">
12
+ <nav class="collapse text-muted" id="side-nav" aria-label="Side navigation">
13
13
  {%- if sidebar.title or sidebar.version %}
14
- {%- if sidebar.title_url %}
15
- {%- if page.url == sidebar.title_url %}
16
- <a class="btn hover-primary text-start d-block mb-1 sidebar-title active" href="{{ sidebar.title_url | relative_url }}">{{sidebar.title}} {{sidebar.version}}</a>
17
- {%- else %}
18
- <a class="btn hover-primary text-start d-block mb-1 sidebar-title" href="{{ sidebar.title_url | relative_url }}">{{sidebar.title}} {{sidebar.version}}</a>
14
+ <div class="sidebar-title-wrapper pb-1 pt-2">
15
+ <a class="text-start d-block sidebar-title text-dark{% if page.url == sidebar.title_url %} active{%- endif %}{% unless sidebar.title_url %} disabled{%- endunless %}" {%- if sidebar.title_url %}href="{{ sidebar.title_url | relative_url }}"{%- endif %}>{{sidebar.title}} {{sidebar.version}}</a>
16
+ </div>
19
17
  {%- endif %}
20
- {%- else %}
21
- <a class="btn text-start d-block mb-1 sidebar-title disabled" aria-disabled="true">{{sidebar.title}} {{sidebar.version}}</a>
22
- {%- endif %}
23
- {%- endif %}
24
- <ul class="list-unstyled mb-4">
18
+ <ul id="sidebar-list-lvl-0" class="list-unstyled mb-4{%- unless sidebar.title or sidebar.version %} pt-2{%- endunless %}">
19
+ {%- assign subitems_count = 0 %}
25
20
  {%- for folder in sidebar.subitems %}
26
- {%- if page.url == folder.url %}
27
- <li class="active{%- if folder.hr %} mt-3{% endif %}">
28
- {%- else %}
29
- <li {%- if folder.hr %} class="mt-3"{% endif %}>
21
+ <li class="d-flex align-items-center{%- if folder.hr %} mt-3{% endif %}">
22
+ {%- if folder.subitems %}
23
+ {%- assign subfolder_active = false %}
24
+ {%- for subfolder in folder.subitems %}
25
+ {%- if page.url == subfolder.url %}
26
+ {%- assign subfolder_active = true %}
27
+ {%- endif %}
28
+ {%- if subfolder.subitems %}
29
+ {%- for subsubfolder in subfolder.subitems %}
30
+ {%- if page.url == subsubfolder.url %}
31
+ {%- assign subfolder_active = true %}
32
+ {%- endif %}
33
+ {%- endfor %}
34
+ {%- endif %}
35
+ {%- endfor %}
30
36
  {%- endif %}
31
37
  {%- if folder.external_url %}
32
- <a class="btn hover-primary text-start d-block mb-1" href="{{folder.external_url}}" target="_blank" rel="noopener">{{folder.title}}</a>
33
- {%- else %}
34
- <a class="btn hover-primary text-start d-block mb-1" href="{{folder.url | relative_url }}">{{ folder.title }}</a>
38
+ <a class="text-start w-100" href="{{folder.external_url}}" target="_blank" rel="noopener">{{folder.title}}</a>
39
+ {%- else %}
40
+ <a class="text-start w-100{%- if page.url == folder.url %} active{% endif %}" {%- if folder.url %}href="{{folder.url | relative_url }}"{% else %}data-bs-toggle="collapse" data-bs-target="#sidebar-list-lvl-1-{{subitems_count}}" aria-expanded="{{subfolder_active}}" aria-controls="sidebar-list-lvl-1-{{subitems_count}}"{% endif %}>{{ folder.title }}</a>
35
41
  {%- endif %}
36
42
  {%- if folder.subitems %}
37
- <ul class="list-unstyled">
43
+ <button type="button" class="btn btn-sm btn-link rounded-circle{%- unless subfolder_active or page.url == folder.url or page.type == 'Data_life_cycle' and folder.title == 'Data life cycle' %} collapsed{% endunless %}" data-bs-toggle="collapse" data-bs-target="#sidebar-list-lvl-1-{{subitems_count}}" aria-expanded="{{subfolder_active}}" aria-controls="sidebar-list-lvl-1-{{subitems_count}}">
44
+ <i class="fa-solid fa-chevron-right"></i><span class="visually-hidden">Expand sidebar</span>
45
+ </button>
46
+ <li class="py-0">
47
+ <ul id="sidebar-list-lvl-1-{{subitems_count}}" class="list-unstyled collapse{%- if subfolder_active or page.url == folder.url or page.type == 'Data_life_cycle' and folder.title == 'Data life cycle' %} show{% endif %}" data-bs-parent="#sidebar-list-lvl-0">
48
+ {%- assign subsubitems_count = 0 %}
38
49
  {%- for subfolder in folder.subitems %}
39
50
  {%- if subfolder.RDM -%}
40
- {%- if page.type == "data_life_cycle" %}
41
- <li class="active sidebar_rdm_sub mb-1">
42
- {% else %}
43
- <li class="sidebar_rdm_sub mb-1">
44
- {% endif %}
51
+ <li class="sidebar_rdm_sub mb-1{%- if page.type == 'Data_life_cycle' %} active{% endif %}">
45
52
  <svg version="1.1" id="data-life-cycle" xmlns="http://www.w3.org/2000/svg"
46
53
  xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 250.9 251"
47
54
  style="enable-background:new 0 0 250.9 251;" xml:space="preserve" class="sidebar_rdm">
@@ -198,40 +205,49 @@
198
205
  </svg>
199
206
  </li>
200
207
  {%- else %}
201
- {%- if page.url == subfolder.url %}
202
- <li class="active">
203
- {%- else %}
204
- <li>
208
+ <li class="d-flex align-items-center{%- if subfolder.hr %} mt-3{% endif %}">
209
+ {%- if subfolder.subitems %}
210
+ {%- assign subsubfolder_active = false %}
211
+ {%- for subsubfolder in subfolder.subitems %}
212
+ {%- if page.url == subsubfolder.url %}
213
+ {%- assign subsubfolder_active = true %}
214
+ {%- endif %}
215
+ {%- endfor %}
205
216
  {%- endif %}
206
217
  {%- if subfolder.external_url %}
207
- <a class="btn hover-primary text-start d-block mb-1" href="{{subfolder.external_url}}" target="_blank" rel="noopener">{{subfolder.title}}</a>
218
+ <a class="text-start w-100" href="{{subfolder.external_url}}" target="_blank" rel="noopener">{{subfolder.title}}</a>
208
219
  {%- else %}
209
- <a class="btn hover-primary text-start d-block mb-1" href="{{subfolder.url | relative_url }}">{{ subfolder.title }}</a>
220
+ <a class="text-start w-100{%- if page.url == subfolder.url %} active{% endif %}" {%- if subfolder.url %}href="{{subfolder.url | relative_url }}"{% else %}data-bs-toggle="collapse" data-bs-target="#sidebar-list-lvl-2-{{subsubitems_count}}" aria-expanded="{{subsubfolder_active}}" aria-controls="sidebar-list-lvl-2-{{subsubitems_count}}"{% endif %}>{{ subfolder.title }}</a>
210
221
  {%- endif %}
211
222
  {%- if subfolder.subitems %}
212
- <ul class="list-unstyled">
223
+ <button type="button" class="btn btn-sm btn-link rounded-circle{%- unless subsubfolder_active or page.url == subfolder.url %} collapsed{% endunless %}" data-bs-toggle="collapse" data-bs-target="#sidebar-list-lvl-2-{{subsubitems_count}}" aria-expanded="{{subsubfolder_active}}" aria-controls="sidebar-list-lvl-2-{{subsubitems_count}}">
224
+ <i class="fa-solid fa-chevron-right"></i><span class="visually-hidden">Expand sidebar</span>
225
+ </button>
226
+ </li>
227
+ <li class="py-0">
228
+ <ul id="sidebar-list-lvl-2-{{subsubitems_count}}" class="list-unstyled collapse{%- if subsubfolder_active or page.url == subfolder.url %} show{% endif %}" data-bs-parent="#sidebar-list-lvl-1-{{subitems_count}}">
213
229
  {%- for subsubfolder in subfolder.subitems %}
214
- {%- if page.url == subsubfolder.url %}
215
- <li class="active">
216
- {%- else %}
217
- <li>
218
- {%- endif %}
230
+ <li class="d-flex align-items-center{%- if subsubfolder.hr %} mt-3{% endif %}">
219
231
  {%- if subsubfolder.external_url %}
220
- <a class="btn hover-primary text-start d-block mb-1" href="{{subsubfolder.external_url}}" target="_blank" rel="noopener">{{subsubfolder.title}}</a>
221
- {%- else %}
222
- <a class="btn hover-primary text-start d-block mb-1" href="{{subsubfolder.url | relative_url }}">{{ subsubfolder.title }}</a>
232
+ <a class="text-start w-100" href="{{subsubfolder.external_url}}" target="_blank" rel="noopener">{{subsubfolder.title}}</a>
233
+ {%- else %}
234
+ <a class="text-start w-100{%- if page.url == subsubfolder.url %} active{% endif %}" href="{{subsubfolder.url | relative_url }}">{{ subsubfolder.title }}</a>
223
235
  {%- endif %}
224
236
  </li>
225
237
  {%- endfor %}
226
238
  </ul>
239
+ </li>
227
240
  {%- endif %}
228
- {%- endif %}
241
+ {%- unless subfolder.subitems %}
229
242
  </li>
243
+ {%- endunless %}
244
+ {%- endif %}
245
+ {%- assign subsubitems_count = subsubitems_count | plus: 1 %}
230
246
  {%- endfor %}
231
247
  </ul>
232
248
  {%- endif %}
233
- </li>
249
+ </li>
250
+ {%- assign subitems_count = subitems_count | plus: 1 %}
234
251
  {%- endfor %}
235
252
  </ul>
236
- <script>$("li.active").parents('li').toggleClass("active parent");</script>
237
253
  </nav>
data/_includes/toc.html CHANGED
@@ -19,7 +19,7 @@
19
19
  classes: { list: 'list-unstyled mb-4' },
20
20
  showSpeed: 0,
21
21
  headers: '{{site.theme_variables.toc.headings | default: "main h2" }}',
22
- title: '<strong class="my-2">On this page</strong><hr class="my-2">'
22
+ title: '<strong class="my-0 my-xl-2 pt-2 d-block text-dark">On this page</strong><hr class="mt-2">'
23
23
  });
24
24
  // After generating the TOC, check the hash in the URL and scroll to the anchor if present
25
25
  if (window.location.hash) {
@@ -1,8 +1,9 @@
1
1
  <!-- Navigation -->
2
2
  <header>
3
+ <a class="visually-hidden-focusable" href='#side-nav'>Skip to aside</a>
3
4
  <a class="visually-hidden-focusable" href='#main'>Skip to content</a>
4
5
  <a class="visually-hidden-focusable" href='#footer'>Skip to footer</a>
5
- <nav class="navbar navbar-{{ site.theme_variables.topnav.theme | default: 'light' }} navbar-expand-lg mb-3 mb-lg-5">
6
+ <nav class="navbar navbar-{{ site.theme_variables.topnav.theme | default: 'light' }} navbar-expand-lg mb-3 mb-lg-5 shadow-sm">
6
7
  <div class="container g-lg-5">
7
8
  <a class="navbar-brand flex-grow-1 overflow-x-auto" href="{{ '/' | relative_url }}"><img class="{% if site.topnav_title %}me-3 {% endif %}img-fluid" alt="{{site.title}} logo" src="{{ site.theme_variables.topnav.brand_logo | default: 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-0 me-lg-3">{{site.topnav_title}}</span>{% endif %}</a>
8
9
  <button class="navbar-toggler text-primary" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
@@ -1,12 +1,12 @@
1
1
  <!doctype html>
2
2
  <html lang="en">
3
3
  {% include head.html %}
4
- <body class="d-flex flex-column min-vh-100"{% if page.toc or page.toc == nil %} data-bs-spy="scroll" data-bs-target="#toc-contents" data-bs-smooth-scroll="true" tabindex="0"{% endif %}>
4
+ <body class=""{% if page.toc or page.toc == nil %} data-bs-spy="scroll" data-bs-target="#toc-contents" data-bs-smooth-scroll="true" tabindex="0"{% endif %}>
5
5
  {% if site.topnav_banner %}{% include banner.html %}{% endif %}
6
6
  {% if jekyll.environment == "development" and site.theme_variables.dev-info-banner == true %}{% include dev-info.html %}{% endif %}
7
- {% include topnav.html %}
7
+ {% include topnav.html search=site.theme_variables.topnav.search %}
8
8
  <!-- Page Content -->
9
- <div class="container g-lg-5 flex-grow-1">
9
+ <div class="container g-lg-5">
10
10
  <!-- Content Row -->
11
11
  <div {% if page.sidebar %}id="layout" class="gap-5"{% endif %}>
12
12
  <!-- Sidebar -->
data/_layouts/page.html CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <main id="main" class="order-1{%- if page.toc or page.toc == nil or page.page_img %} add-grid{% endif %}">
4
+ <main id="main" class="min-vh-100{%- if page.toc or page.toc == nil or page.page_img %} add-grid{% endif %}">
5
5
  <div id="intro">
6
6
  {%- if site.theme_variables.breadcrumb %}
7
7
  {% include breadcrumb.html %}
@@ -35,9 +35,9 @@ layout: default
35
35
  {%- if page.page_id %}
36
36
  {% include resource-table-all.html tag=page.page_id %}
37
37
  {%- endif %}
38
- {% include affiliation-tiles-page.html %}
39
- {% include contributor-minitiles-page.html %}
40
- {% include citation-page.html %}
38
+
39
+ {% include page-metadata-tabs.html %}
40
+
41
41
  {%- if site.theme_variables.github_buttons.position == "bottom" %}
42
42
  <div id="github-buttons-wrapper" class="d-flex mt-5">
43
43
  {% include github-buttons.html %}
@@ -7,4 +7,5 @@ $light: #f8f9fa;
7
7
  $dark: #212529;
8
8
 
9
9
  /*-----Custom values for Bootstrap variables-----*/
10
- $link-decoration: none;
10
+
11
+
@@ -10,40 +10,34 @@ $btn-primary-color-hover: $white;
10
10
  $topnav-bg: $light;
11
11
  $topnav-title-color: $primary;
12
12
  $topnav-brand-height: 44px;
13
+ $topnav-searchbar: $white;
13
14
 
14
15
  /*-----Search-----*/
15
16
  $search-result-color: $primary;
16
17
 
17
18
  /*-----Sidebar-----*/
18
- $sidebar-bg: $light;
19
- $sidebar-color: $dark;
20
- $sidebar-lvl2-bg: $white;
21
- $sidebar-lvl2-color: $dark;
22
- $sidebar-lvl3-bg: $white;
23
- $sidebar-lvl3-color: $dark;
24
- $sidebar-bg-active: $primary;
25
- $sidebar-color-active: $white;
19
+ $sidebar-title-bg: $white;
20
+ $sidebar-link-color-active: $primary !default;
21
+ $sidebar-link-bg-active:rgba($primary, 0.08) !default;
26
22
 
27
23
  /*-----Section navigation tiles-----*/
28
24
  $nav-card-bg: $light;
29
25
  $nav-card-color: $dark;
30
- $nav-card-bg-hover: $primary;
31
- $nav-card-color-hover: $white;
26
+ $nav-card-bg-hover: rgba($primary, 0.08) !default;
27
+ $nav-card-color-hover: $dark;
32
28
 
33
29
  /*-----More information tiles-----*/
34
30
  $info-card-bg: $light;
35
31
  $info-card-color: $dark;
36
- $info-card-bg-hover: $primary;
37
- $info-card-color-hover: $white;
32
+ $info-card-bg-hover: rgba($primary, 0.08) !default;
33
+ $info-card-color-hover: $dark;
38
34
 
39
35
  /*-----Contributors-cards-----*/
40
36
  $contr-card-bg: $light;
41
37
 
42
- /*-----Page contributors-----*/
43
- $contr-bg: $light;
44
- $contr-link-bg: $white;
45
- $contr-crown-bg: $dark;
46
- $contr-crown-color: $white;
38
+ /*-----Page metadata-----*/
39
+ $page-metadata-bg: rgba($primary, 0.08);
40
+ $page-metadata-link-bg: $white;
47
41
  $contr-popover-bg: $white;
48
42
 
49
43
  /*-----Events & news-----*/