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.
- checksums.yaml +4 -4
- data/README.md +3 -2
- 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/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 +28 -16
- 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 +235 -107
- 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
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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 =
|
|
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
|
|
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
|
-
{%-
|
|
84
|
-
|
|
85
|
-
<
|
|
86
|
-
|
|
87
|
-
|
|
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-
|
|
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 %}
|
data/_includes/scroll-top.html
CHANGED
|
@@ -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
|
-
|
|
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) {
|
data/_includes/sidebar.html
CHANGED
|
@@ -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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
{%-
|
|
21
|
-
|
|
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
|
|
27
|
-
|
|
28
|
-
{%-
|
|
29
|
-
|
|
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="
|
|
33
|
-
{%- else %}
|
|
34
|
-
<a class="
|
|
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
|
-
|
|
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 ==
|
|
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
|
|
202
|
-
|
|
203
|
-
{%-
|
|
204
|
-
|
|
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="
|
|
218
|
+
<a class="text-start w-100" href="{{subfolder.external_url}}" target="_blank" rel="noopener">{{subfolder.title}}</a>
|
|
208
219
|
{%- else %}
|
|
209
|
-
<a class="
|
|
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
|
-
|
|
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
|
|
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="
|
|
221
|
-
{%- else %}
|
|
222
|
-
<a class="
|
|
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
|
-
{%-
|
|
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="
|
|
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) {
|
data/_includes/topnav.html
CHANGED
|
@@ -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">
|
data/_layouts/default.html
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
{% include head.html %}
|
|
4
|
-
<body class="
|
|
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
|
|
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="
|
|
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
|
-
|
|
39
|
-
{% include
|
|
40
|
-
|
|
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 %}
|
data/_sass/_variables.scss
CHANGED
|
@@ -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: $
|
|
19
|
-
$sidebar-color: $
|
|
20
|
-
$sidebar-
|
|
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: $
|
|
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: $
|
|
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
|
|
43
|
-
$
|
|
44
|
-
$
|
|
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-----*/
|