elixir-toolkit-theme 1.17.0 → 1.19.1
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 +6 -3
- data/_includes/events.html +3 -3
- data/_includes/head.html +1 -2
- data/_includes/image.html +1 -1
- data/_includes/more-information-tiles.html +8 -8
- data/_includes/news.html +5 -5
- data/_includes/related-pages.html +1 -1
- data/_includes/resource-table-all.html +2 -2
- data/_includes/resource-table-page.html +1 -1
- data/_includes/section-navigation-tiles.html +61 -15
- data/_includes/topnav.html +3 -1
- data/_sass/_bootstrap_variables.scss +0 -2
- data/_sass/bootstrap/_buttons.scss +0 -1
- data/_sass/bootstrap/bootstrap-grid.scss +1 -1
- data/_sass/bootstrap/bootstrap-reboot.scss +1 -1
- data/_sass/bootstrap/bootstrap-utilities.scss +1 -1
- data/_sass/bootstrap/bootstrap.scss +1 -1
- data/assets/css/main.scss +44 -47
- data/assets/js/bootstrap.bundle.min.js +2 -2
- data/assets/js/bootstrap.bundle.min.js.map +1 -1
- data/assets/js/main.js +27 -16
- data/assets/js/search.js +5 -3
- metadata +2 -3
- data/assets/js/jquery.cookie.min.js +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d25ccdccd8546e8462ab2f2c328a2a47b603ccf64aed11f73653f7adc5f77ae0
|
4
|
+
data.tar.gz: ed33ad9d7f1059b2e66dfc0b59661114402b36a9e0de8a507260f004d76d7b21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba1d252ef46b69fe558e36b840c93babc1e1f3d27d81f92197cab2466c8f9394785cb025f2a8763a14dfd2ab253282f7381babb31f7bd4a9cc87ab8f7c992629
|
7
|
+
data.tar.gz: 5c7418b95f1166342318aef1dd58271ac6bad3288da64d22ade55303af54ef5974055acca4adba5d1b52a525808d84f63f9900c77d8673e7dc8bcc5325d4ac0a
|
data/README.md
CHANGED
@@ -23,13 +23,16 @@ Its key features:
|
|
23
23
|
|
24
24
|
## Installation
|
25
25
|
|
26
|
-
### via GitHub Pages remote theme
|
26
|
+
### via GitHub Pages remote theme (installation free!)
|
27
27
|
|
28
|
-
The
|
28
|
+
The quickest way to use the elixir-toolkit-theme is to use the GitHub pages [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) feature in your `config.yml` file:
|
29
29
|
|
30
30
|
```yaml
|
31
31
|
remote_theme: ELIXIR-Belgium/elixir-toolkit-theme
|
32
32
|
```
|
33
|
+
|
34
|
+
It also allows you to use a specific version of the theme by add `@X.X.X` to make sure your website keeps working iif breaking changes get introduced.
|
35
|
+
|
33
36
|
### via RubyGems:
|
34
37
|
|
35
38
|
Alternatively you can install it as a Ruby Gem (preferred way if you use GitLab).
|
@@ -96,7 +99,7 @@ docker run -it --rm -p [::1]:4000:4000 -v $PWD:/srv/jekyll jekyll/jekyll:latest
|
|
96
99
|
|
97
100
|
This will start the docker container and serve the website locally. Make sure the `.\_site` is not yet created to avoid permission errors.
|
98
101
|
|
99
|
-
## This theme is known to be used in
|
102
|
+
## This theme is known to be used in
|
100
103
|
|
101
104
|
- [RDMkit](https://rdmkit.elixir-europe.org/)
|
102
105
|
- [WorkflowHub project](https://about.workflowhub.eu/)
|
data/_includes/events.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<div class="events {{include.event_type}}s">
|
2
|
-
{%- if include.title ==
|
2
|
+
{%- if include.title == true%}
|
3
3
|
<h2>{{include.event_type | replace: "_", " " | capitalize}}s</h2>
|
4
4
|
{%- endif %}
|
5
5
|
{%- assign events = site.data.events %}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
{%- endif %}
|
17
17
|
{%- if event.description %}
|
18
18
|
{%- assign word_count = event.description | split: " " | size %}
|
19
|
-
{%- if include.truncate ==
|
19
|
+
{%- if include.truncate == true and word_count > 40 %}
|
20
20
|
<p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
|
21
21
|
View description
|
22
22
|
</a>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
{%- assign count = count | plus: 1 %}
|
33
33
|
{%- endfor %}
|
34
34
|
</ul>
|
35
|
-
{%- if include.caption ==
|
35
|
+
{%- if include.caption == true%}
|
36
36
|
<small>An overview of all our events can be fount on the <a href="{{'/events' | relative_url}}">events page</a>.</small>
|
37
37
|
{%- endif %}
|
38
38
|
</div>
|
data/_includes/head.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
{%- capture keywords %}
|
7
7
|
{%- if page.related_pages %}
|
8
8
|
{%- for section in page.related_pages %}
|
9
|
-
{%- unless section[1] ==
|
9
|
+
{%- unless section[1].size == 0 %}
|
10
10
|
{%- for keywordstr in section[1] %}
|
11
11
|
{%- assign keywordpage = site.pages | where: "page_id", keywordstr | first %}
|
12
12
|
{%- if allkeywords %}
|
@@ -54,7 +54,6 @@
|
|
54
54
|
<script src="{{ 'assets/js/anchor.min.js' | relative_url }}"></script>
|
55
55
|
<script src="{{ 'assets/js/toc.js' | relative_url }}"></script>
|
56
56
|
<script src="{{ 'assets/js/jquery.navgoco.js' | relative_url }}"></script>
|
57
|
-
<script src="{{ 'assets/js/jquery.cookie.min.js' | relative_url }}"></script>
|
58
57
|
<script src="{{ 'assets/js/main.js' | relative_url }}"></script>
|
59
58
|
<script src="{{ 'assets/js/search.js' | relative_url }}"></script>
|
60
59
|
{%- if page.datatable == true %}
|
data/_includes/image.html
CHANGED
@@ -17,13 +17,13 @@
|
|
17
17
|
<div class="col-2 d-flex align-items-center justify-content-center">
|
18
18
|
{%- assign registry = training.registry | downcase %}
|
19
19
|
{%- if registry == "tess" %}
|
20
|
-
<img alt="TeSS logo" class="img-fluid" src="assets/img/tess_logo.svg">
|
20
|
+
<img alt="TeSS logo" class="img-fluid" src="{{ 'assets/img/tess_logo.svg' | relative_url }}">
|
21
21
|
{%- elsif registry == "zenodo" %}
|
22
|
-
<img alt="Zenodo logo" class="img-fluid" src="assets/img/zenodo_logo.svg">
|
22
|
+
<img alt="Zenodo logo" class="img-fluid" src="{{ 'assets/img/zenodo_logo.svg' | relative_url }}">
|
23
23
|
{%- elsif registry == "youtube" %}
|
24
|
-
<img alt="Youtube logo" class="img-fluid" src="assets/img/youtube_logo.svg">
|
24
|
+
<img alt="Youtube logo" class="img-fluid" src="{{ 'assets/img/youtube_logo.svg' | relative_url }}">
|
25
25
|
{%- elsif registry == "carpentries" %}
|
26
|
-
<img alt="Carpentries" class="img-fluid" src="assets/img/carpentries_logo.svg">
|
26
|
+
<img alt="Carpentries" class="img-fluid" src="{{ 'assets/img/carpentries_logo.svg' | relative_url }}">
|
27
27
|
{%- else %}
|
28
28
|
<i class="fa-solid fa-external-link-alt text-primary fs-5"></i>
|
29
29
|
{%- endif %}
|
@@ -53,7 +53,7 @@
|
|
53
53
|
<a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="FAIRCookbook" href="{{ recipe.url }}">
|
54
54
|
<div class="row g-1">
|
55
55
|
<div class="col-2 d-flex align-items-center justify-content-center">
|
56
|
-
<img alt="FAIRCookbook logo" class="img-fluid" src="assets/img/fairplus_compact_logo.svg">
|
56
|
+
<img alt="FAIRCookbook logo" class="img-fluid" src="{{ 'assets/img/fairplus_compact_logo.svg' | relative_url }}">
|
57
57
|
</div>
|
58
58
|
<div class="col-10 d-flex align-items-center">
|
59
59
|
<span class="text-start">Step-by-step process for: {{recipe.name}}</span>
|
@@ -69,7 +69,7 @@
|
|
69
69
|
<a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="DSW" href="{{ site.dsw_deep_link_prefix | append: question.uuid }}">
|
70
70
|
<div class="row g-1">
|
71
71
|
<div class="col-2 d-flex align-items-center justify-content-center">
|
72
|
-
<img alt="DSW logo" class="img-fluid" src="assets/img/dsw_compact_logo.svg">
|
72
|
+
<img alt="DSW logo" class="img-fluid" src="{{ 'assets/img/dsw_compact_logo.svg' | relative_url }}">
|
73
73
|
</div>
|
74
74
|
<div class="col-10 d-flex align-items-center">
|
75
75
|
<span class="text-start">Support for DMP on: {{question.name}}</span>
|
@@ -85,7 +85,7 @@
|
|
85
85
|
<a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="FAIRsharing" href="{{ standard.url }}">
|
86
86
|
<div class="row g-1">
|
87
87
|
<div class="col-2 d-flex align-items-center justify-content-center">
|
88
|
-
<img alt="FAIRsharing logo" class="img-fluid" src="assets/img/fairsharing_compact_logo.svg">
|
88
|
+
<img alt="FAIRsharing logo" class="img-fluid" src="{{ 'assets/img/fairsharing_compact_logo.svg' | relative_url }}">
|
89
89
|
</div>
|
90
90
|
<div class="col-10 d-flex align-items-center">
|
91
91
|
<span class="text-start">FAIRsharing collection about: {{standard.name}}</span>
|
@@ -101,7 +101,7 @@
|
|
101
101
|
<a class="btn bg-white hover-primary text-start" data-bs-toggle="tooltip" data-bs-placement="right" title="RDMkit" href="{{ rdmdoc.url }}">
|
102
102
|
<div class="row g-1">
|
103
103
|
<div class="col-2 d-flex align-items-center justify-content-center">
|
104
|
-
<img alt="RDMkit logo" class="img-fluid" src="assets/img/rdmkit_compact_logo.svg">
|
104
|
+
<img alt="RDMkit logo" class="img-fluid" src="{{ 'assets/img/rdmkit_compact_logo.svg' | relative_url }}">
|
105
105
|
</div>
|
106
106
|
<div class="col-10 d-flex align-items-center">
|
107
107
|
<span class="text-start">Data management guidelines on: {{rdmdoc.name}}</span>
|
data/_includes/news.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="news">
|
2
|
-
{%- if include.title ==
|
3
|
-
<h2>
|
2
|
+
{%- if include.title == true %}
|
3
|
+
<h2>What's new?</h2>
|
4
4
|
{%- endif %}
|
5
|
-
{%- assign news = site.data.news | sort: "date"%}
|
5
|
+
{%- assign news = site.data.news | sort: "date" %}
|
6
6
|
{%- assign count = 0 %}
|
7
7
|
<ul class="list-unstyled mt-3">
|
8
8
|
{%- for new in news reversed%}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<p class="text-muted"><i class="far fa-calendar me-2"></i><time>{{ new.date | date_to_long_string }}</time>{% if new.linked_pr %}<b> - </b><i class="fa-solid fa-code-branch"></i><a href="{{ site.github.repository_url | append: '/pull/' | append: new.linked_pr }}">{{new.linked_pr }}</a>{% endif %}</p>
|
12
12
|
{%- if new.description %}
|
13
13
|
{%- assign word_count = new.description | split: " " | size %}
|
14
|
-
{%- if include.truncate ==
|
14
|
+
{%- if include.truncate == true and word_count > 40 %}
|
15
15
|
<p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
|
16
16
|
View description
|
17
17
|
</a>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
{%- endif %}
|
31
31
|
{%- endfor %}
|
32
32
|
</ul>
|
33
|
-
{%- if include.caption ==
|
33
|
+
{%- if include.caption == true %}
|
34
34
|
<small>For more news please visit our <a href="{{ '/news' | relative_url }}">news page</a>.</small>
|
35
35
|
{%- endif %}
|
36
36
|
</div>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
{%- assign metadata = section_pages | where:"page_id", page_id %}
|
24
24
|
{%- for page_hit in metadata %}
|
25
25
|
<li class="d-grid">
|
26
|
-
<a class="btn bg-white hover-primary text-start" href="{{ page_hit.url | relative_url }}"><span>{{page_hit.title}}{% if page_hit.description %}</span><br><small class="text-muted">{{ page_hit.description
|
26
|
+
<a class="btn bg-white hover-primary text-start" href="{{ page_hit.url | relative_url }}"><span>{{page_hit.title}}{% if page_hit.description %}</span><br><small class="text-muted">{{ page_hit.description }}</small>{% endif %}</a>
|
27
27
|
</li>
|
28
28
|
{%- endfor %}
|
29
29
|
{%- endfor %}
|
@@ -103,7 +103,7 @@
|
|
103
103
|
{%- assign hide_ids = hide_ids | append: " " | append: tool_id %}
|
104
104
|
<tr {% unless include.tag==nil %} class="collapse multi-collapse" id="{{tool_id}}" {% endunless %}>
|
105
105
|
{% if tool.url %}
|
106
|
-
<td><a href="{{tool.url}}">{{tool.name}}</a><a href="{{country_page.url}}" data-bs-toggle="tooltip" title="{{country_page.title}}"><span class="flag-icon ms-2 flag-icon-{{country_page.country_code | downcase }}"></span></a></td>
|
106
|
+
<td><a href="{{tool.url}}">{{tool.name}}</a><a href="{{country_page.url | relative_url }}" data-bs-toggle="tooltip" title="{{country_page.title}}"><span class="flag-icon ms-2 flag-icon-{{country_page.country_code | downcase }}"></span></a></td>
|
107
107
|
{%- else %}
|
108
108
|
<td>{{tool.name}}<a href="{{country_page.url}}"><span class="flag-icon ms-2 flag-icon-{{country_page.country_code | downcase }}"></span></a></td>
|
109
109
|
{%- endif %}
|
@@ -120,7 +120,7 @@
|
|
120
120
|
{%- if tool.related_pages %}
|
121
121
|
{%- capture related_pages %}
|
122
122
|
{%- for section in tool.related_pages %}
|
123
|
-
{%- unless section.size == 0 %}
|
123
|
+
{%- unless section[1].size == 0 %}
|
124
124
|
{%- for tag in section[1] %}
|
125
125
|
{%- unless tag == page.page_id %}
|
126
126
|
{%- assign related_page = site.pages | where:"page_id",tag | first %}
|
@@ -40,7 +40,7 @@
|
|
40
40
|
{%- if tool.related_pages %}
|
41
41
|
{%- capture related_pages %}
|
42
42
|
{%- for section in tool.related_pages %}
|
43
|
-
{%- unless section.size == 0 %}
|
43
|
+
{%- unless section[1].size == 0 %}
|
44
44
|
{%- for tag in section[1] %}
|
45
45
|
{%- unless tag == page.page_id %}
|
46
46
|
{%- assign related_page = site.pages | where:"page_id",tag | first %}
|
@@ -37,7 +37,7 @@
|
|
37
37
|
<div class="col">
|
38
38
|
<div class="input-group">
|
39
39
|
<span class="input-group-text" id="search-label">Search</span>
|
40
|
-
<input type="text" id="title-search" class="form-control" onkeyup="
|
40
|
+
<input type="text" id="title-search" class="form-control" onkeyup="StartSearch();" placeholder="Type here..." aria-label="{{page.type | replace: '_', ' ' |}}" aria-describedby="search-label">
|
41
41
|
<button class="btn btn-primary" title="Button to clear search" type="button" id="clearsearch">
|
42
42
|
<i class="fa-solid fa-backspace"></i>
|
43
43
|
</button>
|
@@ -50,7 +50,9 @@
|
|
50
50
|
{%- for current_page in site.pages | sorted %}
|
51
51
|
{%- assign affiliations_classes = "" %}
|
52
52
|
{%- assign related_pages_classes = "" %}
|
53
|
+
{%- assign except = include.except | split: ", " %}
|
53
54
|
{%- if current_page.title and current_page.search_exclude != true and current_page.type == include.type %}
|
55
|
+
{%- unless except contains current_page.name %}
|
54
56
|
{%- if current_page.affiliations %}
|
55
57
|
{%- capture affiliations_classes -%}
|
56
58
|
{%- assign affiliations_output = "" %}
|
@@ -63,7 +65,7 @@
|
|
63
65
|
<div class="col" data-affiliations="{{affiliations_classes}}" related-pages="{{related_pages_classes}}">
|
64
66
|
<div class="card h-100">
|
65
67
|
<div class="card-header">
|
66
|
-
<a aria-label="Go to the {{current_page.title}} page" href="{{ current_page.url | relative_url }}">
|
68
|
+
<a class="stretched-link" aria-label="Go to the {{current_page.title}} page" href="{{ current_page.url | relative_url }}">
|
67
69
|
<h3 class="card-title m-0">{{current_page.title}}</h3>
|
68
70
|
</a>
|
69
71
|
</div>
|
@@ -71,21 +73,64 @@
|
|
71
73
|
{%- if current_page.description %}
|
72
74
|
<p class="card-text">{{ current_page.description}}</p>
|
73
75
|
{%- endif %}
|
76
|
+
</div>
|
77
|
+
<div class="px-3 pb-3 d-flex justify-content-between">
|
74
78
|
{%- if current_page.related_pages %}
|
79
|
+
{%- assign nonempty = false %}
|
75
80
|
{%- for section in current_page.related_pages %}
|
76
|
-
{%- unless section[1] ==
|
77
|
-
|
78
|
-
<span><b><small>{{ section[0] | replace: "_", " " | capitalize }}: </small></b></span>
|
79
|
-
{%- for page_id in section[1] %}
|
80
|
-
{%- assign section_pages = site.pages | where:"type", section[0] %}
|
81
|
-
{%- assign metadata = section_pages | where:"page_id", page_id %}
|
82
|
-
{%- for page_hit in metadata %}
|
83
|
-
<a href="{{ page_hit.url | relative_url }}"><span class="badge">{{page_hit.title | truncate: 20 }}</span></a>
|
84
|
-
{%- endfor %}
|
85
|
-
{%- endfor %}
|
86
|
-
</div>
|
81
|
+
{%- unless section[1].size == 0 %}
|
82
|
+
{%- assign nonempty = true %}
|
87
83
|
{%- endunless %}
|
88
84
|
{%- endfor %}
|
85
|
+
{%- if nonempty %}
|
86
|
+
<div class="dropdown">
|
87
|
+
<button class="btn btn-sm dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
88
|
+
Related pages
|
89
|
+
</button>
|
90
|
+
<ul class="dropdown-menu px-2 py-0 border-0 shadow">
|
91
|
+
{%- for section in current_page.related_pages %}
|
92
|
+
{%- unless section[1].size == 0 %}
|
93
|
+
<li><h6 class="dropdown-header">{{ section[0] | replace: "_", " " | capitalize }}</h6></li>
|
94
|
+
{%- for page_id in section[1] %}
|
95
|
+
{%- assign section_pages = site.pages | where:"type", section[0] %}
|
96
|
+
{%- assign metadata = section_pages | where:"page_id", page_id %}
|
97
|
+
{%- for page_hit in metadata %}
|
98
|
+
<li><a class="dropdown-item rounded" href="{{ page_hit.url | relative_url }}">{{page_hit.title }}</a></li>
|
99
|
+
{%- endfor %}
|
100
|
+
{%- endfor %}
|
101
|
+
{%- endunless %}
|
102
|
+
{%- endfor %}
|
103
|
+
</ul>
|
104
|
+
</div>
|
105
|
+
{%- endif %}
|
106
|
+
{%- endif %}
|
107
|
+
{%- if current_page.dsw or current_page.faircookbook %}
|
108
|
+
<div class="btn-group btn-group-sm" role="group">
|
109
|
+
{%- if current_page.faircookbook %}
|
110
|
+
<div class="btn-group btn-group-sm" role="group">
|
111
|
+
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
112
|
+
<img alt="faircookbook logo" src="{{ 'assets/img/fairplus_compact_logo.svg' | relative_url }}">
|
113
|
+
</button>
|
114
|
+
<ul class="dropdown-menu px-2 py-0 border-0 shadow">
|
115
|
+
{%- for item in current_page.faircookbook %}
|
116
|
+
<li><a class="dropdown-item rounded" href="{{ item.url }}">{{item.name }}</a></li>
|
117
|
+
{%- endfor %}
|
118
|
+
</ul>
|
119
|
+
</div>
|
120
|
+
{%- endif %}
|
121
|
+
{%- if current_page.dsw %}
|
122
|
+
<div class="btn-group btn-group-sm" role="group">
|
123
|
+
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
|
124
|
+
<img alt="DSW logo" src="{{ 'assets/img/dsw_compact_logo.svg' | relative_url }}">
|
125
|
+
</button>
|
126
|
+
<ul class="dropdown-menu px-2 py-0 border-0 shadow">
|
127
|
+
{%- for item in current_page.dsw %}
|
128
|
+
<li><a class="dropdown-item rounded" href="{{ site.dsw_deep_link_prefix | append: item.uuid }}">{{item.name }}</a></li>
|
129
|
+
{%- endfor %}
|
130
|
+
</ul>
|
131
|
+
</div>
|
132
|
+
{%- endif %}
|
133
|
+
</div>
|
89
134
|
{%- endif %}
|
90
135
|
</div>
|
91
136
|
{%- if current_page.affiliations %}
|
@@ -100,7 +145,7 @@
|
|
100
145
|
{%- if affiliation.size == 2 %}
|
101
146
|
{%- assign country_link = site.pages | where:"country_code",country | first %}
|
102
147
|
{%- if country_link %}
|
103
|
-
<a role="button" href="{{country_link.url}}" data-bs-toggle="tooltip" title="{{allcountries[country]}}" class="btn btn-sm bg-white hover-primary">
|
148
|
+
<a role="button" href="{{'country_link.url' | relative_url}}" data-bs-toggle="tooltip" title="{{allcountries[country]}}" class="btn btn-sm bg-white hover-primary">
|
104
149
|
{%- else %}
|
105
150
|
<a role="button" data-bs-toggle="tooltip" title="{{allcountries[country]}}" class="btn btn-sm bg-white hover-primary disabled" aria-disabled="true">
|
106
151
|
{%- endif %}
|
@@ -121,6 +166,7 @@
|
|
121
166
|
{%- endif %}
|
122
167
|
</div>
|
123
168
|
</div>
|
169
|
+
{% endunless %}
|
124
170
|
{%- endif %}
|
125
171
|
{%- endfor %}
|
126
172
|
</div>
|
@@ -171,7 +217,7 @@
|
|
171
217
|
* Search cards
|
172
218
|
*/
|
173
219
|
|
174
|
-
var
|
220
|
+
var StartSearch = () => {
|
175
221
|
const input = document.getElementById("title-search");
|
176
222
|
if (input) {
|
177
223
|
const cols = document.querySelectorAll(".navigation-tiles .col");
|
data/_includes/topnav.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<header>
|
3
3
|
<a class="visually-hidden-focusable" href='#main'>Skip to content</a>
|
4
4
|
<a class="visually-hidden-focusable" href='#footer'>Skip to footer</a>
|
5
|
-
<nav class="navbar navbar-expand-lg mb-3 mb-lg-5">
|
5
|
+
<nav class="navbar navbar-{{ site.theme_variables.topnav.theme | default: 'light' }} navbar-expand-lg mb-3 mb-lg-5">
|
6
6
|
<div class="container">
|
7
7
|
<a class="navbar-brand" 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
8
|
<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">
|
@@ -55,6 +55,7 @@
|
|
55
55
|
<a class="nav-link ps-2 d-flex align-items-center" href="{{site.github.repository_url}}"><i class="fa-brands fa-github me-2"></i>{{site.theme_variables.git_host | default: 'GitHub' }}</a>
|
56
56
|
</li>
|
57
57
|
{%- endif %}
|
58
|
+
{%- unless include.search == false %}
|
58
59
|
<!--start search-->
|
59
60
|
<li class="nav-item ms-0 ms-lg-3 my-2 my-lg-0">
|
60
61
|
<div class="position-relative">
|
@@ -65,6 +66,7 @@
|
|
65
66
|
</div>
|
66
67
|
</li>
|
67
68
|
<!--end search-->
|
69
|
+
{%- endunless %}
|
68
70
|
</ul>
|
69
71
|
</div>
|
70
72
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap Grid v5.1.
|
2
|
+
* Bootstrap Grid v5.1.3 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2021 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2021 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap Reboot v5.1.
|
2
|
+
* Bootstrap Reboot v5.1.3 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2021 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2021 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap Utilities v5.1.
|
2
|
+
* Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)
|
3
3
|
* Copyright 2011-2021 The Bootstrap Authors
|
4
4
|
* Copyright 2011-2021 Twitter, Inc.
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|