File tree Expand file tree Collapse file tree 8 files changed +48
-29
lines changed Expand file tree Collapse file tree 8 files changed +48
-29
lines changed Original file line number Diff line number Diff line change 1
1
GEM
2
2
remote: https://rubygems.org/
3
3
specs:
4
- activesupport (6.0.4.4 )
4
+ activesupport (6.0.4.6 )
5
5
concurrent-ruby (~> 1.0 , >= 1.0.2 )
6
6
i18n (>= 0.7 , < 2 )
7
7
minitest (~> 5.1 )
27
27
eventmachine (1.2.7 )
28
28
eventmachine (1.2.7-x64-mingw32 )
29
29
execjs (2.8.1 )
30
- faraday (1.9.3 )
30
+ faraday (1.10.0 )
31
31
faraday-em_http (~> 1.0 )
32
32
faraday-em_synchrony (~> 1.0 )
33
33
faraday-excon (~> 1.1 )
@@ -228,17 +228,17 @@ GEM
228
228
rb-fsevent (~> 0.10 , >= 0.10.3 )
229
229
rb-inotify (~> 0.9 , >= 0.9.10 )
230
230
mercenary (0.3.6 )
231
- mini_portile2 (2.7.1 )
231
+ mini_portile2 (2.8.0 )
232
232
minima (2.5.1 )
233
233
jekyll (>= 3.5 , < 5.0 )
234
234
jekyll-feed (~> 0.9 )
235
235
jekyll-seo-tag (~> 2.1 )
236
236
minitest (5.15.0 )
237
237
multipart-post (2.1.1 )
238
- nokogiri (1.13.1 )
239
- mini_portile2 (~> 2.7 .0 )
238
+ nokogiri (1.13.3 )
239
+ mini_portile2 (~> 2.8 .0 )
240
240
racc (~> 1.4 )
241
- nokogiri (1.13.1 -x64-mingw32 )
241
+ nokogiri (1.13.3 -x64-mingw32 )
242
242
racc (~> 1.4 )
243
243
octokit (4.22.0 )
244
244
faraday (>= 0.9 )
247
247
forwardable-extended (~> 2.6 )
248
248
public_suffix (4.0.6 )
249
249
racc (1.6.0 )
250
- rb-fsevent (0.11.0 )
250
+ rb-fsevent (0.11.1 )
251
251
rb-inotify (0.10.1 )
252
252
ffi (~> 1.0 )
253
253
rexml (3.2.5 )
Original file line number Diff line number Diff line change
1
+ # title: About
2
+ # version: 2.0
3
+ # title_url: /events.html
1
4
subitems :
2
5
- title : About
3
6
subitems :
Original file line number Diff line number Diff line change 98
98
{%- if affiliation.size == 2 %}
99
99
{%- assign country_link = site.pages | where:"country_code",country | first %}
100
100
{%- if country_link %}
101
- < a role ="button " href ="{{country_link.url}} " data-bs-toggle ="tooltip " title ="{{allcountries[country]}} " class ="btn btn-sm bg-white hover-primary "> < div class =" flag-icon flag-icon-{{affiliation | downcase}} h-30px " > </ div > </ a >
101
+ < a role ="button " href ="{{country_link.url}} " data-bs-toggle ="tooltip " title ="{{allcountries[country]}} " class ="btn btn-sm bg-white hover-primary ">
102
102
{%- else %}
103
- < span class ="d-inline-block " tabindex ="0 " data-bs-toggle ="tooltip " title ="{{allcountries[country]}} ">
104
- < button class ="btn btn-sm text-dark bg-white pe-none " title ="{{allcountries[country]}} "> < div class ="flag-icon flag-icon-{{affiliation | downcase}} h-30px "> </ div > </ button >
105
- </ span >
103
+ < a role ="button " data-bs-toggle ="tooltip " title ="{{allcountries[country]}} " class ="btn btn-sm bg-white hover-primary disabled " aria-disabled ="true ">
106
104
{%- endif %}
107
- {%- elsif affiliation == "ALL" %}
108
- < span class ="d-inline-block " tabindex =" 0 " data-bs-toggle =" tooltip " title =" All people " >
109
- < button class =" btn btn-sm text-dark bg-white pe-none " title =" ALL " > < div class =" h-30px " > ALL < /div > </ button >
110
- </ span >
105
+ < div class =" d-block h-24px " >
106
+ < span class ="flag-icon flag-icon-{{affiliation | downcase}} align-items-center " > </ span >
107
+ </ div >
108
+ </ a >
111
109
{%- elsif filter_affiliation %}
112
110
{%- for result in filter_affiliation %}
113
- < a role ="button " href ="{{result.url}} " data-bs-toggle ="tooltip " data-bs-original-title ="{{affiliation}} " class ="btn btn-sm bg-white hover-primary "> < img alt ="logo of {{result.name}} " src ="{{result.image_url | relative_url }} " class ="d-inline h-30px "> </ a >
111
+ < a role ="button " href ="{{result.url}} " data-bs-toggle ="tooltip " data-bs-original-title ="{{affiliation}} " class ="btn btn-sm bg-white hover-primary ">
112
+ < img alt ="logo of {{result.name}} " src ="{{result.image_url | relative_url }} " class ="d-inline h-24px ">
113
+ </ a >
114
114
{%- endfor %}
115
115
{%- endif %}
116
116
{%- endfor %}
Original file line number Diff line number Diff line change 10
10
{{ page.sidebar | capitalize | replace: "_", " " }} menu < i title ="navbar-toggler " class ="fa fa-bars ms-2 "> </ i >
11
11
</ button >
12
12
< nav class ="collapse " id ="side-nav " aria-label ="Side navigation ">
13
- < ul id ="menu " class ="menu list-unstyled mb-4 mb-lg-0 ">
13
+ < ul id ="menu " class ="list-unstyled mb-4 mb-lg-0 ">
14
14
{%- if sidebar.title or sidebar.version %}
15
- < li class ="sidebar-title "> {{sidebar.title}} {{sidebar.version}}</ li >
15
+ {%- if sidebar.title_url and page.url == sidebar.title_url %}
16
+ < li class ="sidebar-title active ">
17
+ {%- else %}
18
+ < li class ="sidebar-title ">
19
+ {%- endif %}
20
+ {%- if sidebar.title_url %}
21
+ < a class ="btn active hover-primary text-start d-block mb-1 " href ="{{ sidebar.title_url | relative_url }} "> {{sidebar.title}} {{sidebar.version}}</ a >
22
+ {%- else %}
23
+ < a class ="btn active hover-primary text-start d-block mb-1 disabled " aria-disabled ="true "> {{sidebar.title}} {{sidebar.version}}</ a >
24
+ {%- endif %}
25
+ </ li >
16
26
{%- endif %}
17
27
{%- for folder in sidebar.subitems %}
18
28
{%- if page.url == folder.url %}
Original file line number Diff line number Diff line change 3
3
---
4
4
< main id ="main " class ="mb-5 ">
5
5
{%- if page.title %}
6
+ {%- if page.type %}
6
7
{%- assign subtitle = page.type | replace: "_", " " | capitalize %}
7
- < h1 > {% unless subtitle == nil or subtitle == blank or subtitle == "" %}< span class ="d-block text-secondary fs-4 ff-body "> {{subtitle}}</ span > < span class ="visually-hidden "> :</ span > {% endunless %}{{ page.title }}
8
+ < h1 class ="has-subtitle "> < span class ="d-block text-secondary fs-4 ff-body "> {{subtitle}}</ span > < span class ="visually-hidden "> :</ span > {{ page.title }}
9
+ {%- else %}
10
+ < h1 > {{ page.title }}
11
+ {%- endif %}
8
12
< div class ="btn-group ">
9
13
{%- if page.custom-editme %}
10
14
< a role ="button " data-bs-toggle ="tooltip " title ="Propose changes to the content of this page on GitHub " href ="{{site.github.repository_url}}/blob/master/{{page.custom-editme}} " class ="btn hover-primary text-primary "> < i class ="fas fa-pencil-alt "> </ i > </ a >
Original file line number Diff line number Diff line change @@ -266,12 +266,8 @@ header .navbar {
266
266
background-color : $sidebar-bg-active ;
267
267
}
268
268
269
- .sidebar-title {
270
- font-size : 1.3em ;
271
- }
272
-
273
269
ul #menu {
274
- > li > a {
270
+ > li :not ( .sidebar-title ) > a {
275
271
background-color : $sidebar-bg ;
276
272
color : $sidebar-color ;
277
273
}
@@ -573,7 +569,7 @@ footer {
573
569
height : 40px ;
574
570
}
575
571
576
- .h-30px {
572
+ .h-24px {
577
573
height : 24px ;
578
574
}
579
575
@@ -630,6 +626,14 @@ li.past_event,
630
626
}
631
627
}
632
628
629
+ /* -----Country flags-----*/
630
+
631
+ .flag-icon {
632
+ border-radius : 3px ;
633
+ background-size : cover ;
634
+ }
635
+
636
+
633
637
/* -----Section navigation tiles-----*/
634
638
635
639
.navigation-tiles {
@@ -655,9 +659,6 @@ li.past_event,
655
659
color : $nav-card-badge-color-hover ;
656
660
background-color : $nav-card-badge-bg-hover ;
657
661
}
658
- .card-footer .flag-icon {
659
- display : block ;
660
- }
661
662
}
662
663
}
663
664
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ type: example_pages
4
4
contributors : [Bert Droesbeke]
5
5
description : This description is used when the page is listed
6
6
page_id : gp1
7
- affiliations : [ELIXIR Europe]
7
+ affiliations : [ELIXIR Europe, BE, SE ]
8
8
faircookbook :
9
9
- name : Link towards a FAIRCOOKBOOK recipe
10
10
url : https://fairplus.github.io/
Original file line number Diff line number Diff line change 2
2
title : General page example 3
3
3
type : example_pages
4
4
description : This page has page level resources
5
+ country_code : BE
5
6
page_id : gp3
6
7
resources :
7
8
- name : Resource name
You can’t perform that action at this time.
0 commit comments