1
+ {% capture logo_path %}{{ site.logo }}{% endcapture %}
2
+
3
+ < div class ="masthead ">
4
+ < div class ="masthead__inner-wrap ">
5
+ < div class ="masthead__menu ">
6
+ < nav id ="site-nav " class ="nav__topbar " aria-label ="Top Bar ">
7
+ <!-- More accessible as a screen reader will group the title and image in the same link -->
8
+ {% unless logo_path == empty %}
9
+ < a class ="site-logo " href ="{{ '/' | relative_url }} ">
10
+ < img src ="{{ logo_path | relative_url }} " alt ="Welcome to the pyOpenSci website. This is the pyOpenSci logo. ">
11
+ < span class ="site-title "> pyOpenSci</ span >
12
+ </ a >
13
+ {% endunless %}
14
+
15
+ < ul class ="nav__links ">
16
+ {%- for alink in site.data.navigation.main -%}
17
+ {% if alink.sub-nav %}
18
+ <!-- If there is sub nav to display -->
19
+ < li class ="dropdown ">
20
+ < button class ="dropbtn " tabindex ="0 " aria-expanded ="false "> {{ alink.title }} < i class ="fas fa-caret-down "> </ i >
21
+ </ button >
22
+ < ul class ="dropdown-content ">
23
+ {% for subnav in alink.sub-nav %}
24
+ < li >
25
+ < a href ="{{ subnav.url }} " class ="masthead__menu-item hover-underline "> {{ subnav.title }}</ a >
26
+ </ li >
27
+ {% endfor %}
28
+ </ ul >
29
+ </ li >
30
+ {% else %}
31
+ < li >
32
+ < a href ="{{ alink.url | relative_url }} " class ="hover-underline "> {{ alink.title }}</ a >
33
+ </ li >
34
+ {% endif %}
35
+ {% endfor %}
36
+ < li >
37
+
38
+ </ li >
39
+ </ ul >
40
+ <!--
41
+ {% if site.search == true %}
42
+ <button class="search__toggle" type="button">
43
+ <span class="visually-hidden">{{ site.data.ui-text[site.locale].search_label | default: "Toggle search" }}</span>
44
+ <i class="fas fa-search"></i>
45
+ </button>
46
+ {% endif %}
47
+ -->
48
+
49
+ < ul class ="hidden-links hidden "> </ ul >
50
+ <!-- Burger button - span class for screen readers-->
51
+ < button class ="hamburger__btn-toggle " type ="button " count ="1 " aria-expanded ="false ">
52
+ < span class ="visually-hidden "> Toggle top navigation menu</ span > <!--screen readers-->
53
+ < div class ="burger__icon "> </ div >
54
+ </ button >
55
+ </ nav >
56
+ </ div >
57
+ </ div >
58
+ </ div >
0 commit comments