Repository navigation
Expand file tree
/
Copy pathmasthead.html
More file actions
37 lines (37 loc) · 1.7 KB
/
Copy pathmasthead.html
File metadata and controls
37 lines (37 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<div class="masthead">
<div class="masthead__inner-wrap">
<div class="masthead__menu">
<nav id="site-nav" class="greedy-nav">
<a class="site-title saps-brand" href="{{ '/' | relative_url }}" aria-label="{{ site.title }}">
<picture>
<source media="(max-width: 52rem)" srcset="{{ '/assets/SAPSIcon.svg' | relative_url }}">
<img class="saps-brand__logo" src="{{ site.logo | relative_url }}" alt="">
</picture>
<span class="visually-hidden">{{ site.title }}</span>
</a>
<ul class="visible-links">
{%- for link in site.data.navigation.main -%}
{%- assign link_url = link.url -%}
<li class="masthead__menu-item">
<a href="{% if link_url contains '://' %}{{ link_url }}{% else %}{{ link_url | relative_url }}{% endif %}"
{%- if link.description %} title="{{ link.description }}"{% endif -%}
{%- if link.target %} target="{{ link.target }}"{% endif -%}
>{{ link.title }}</a>
</li>
{%- endfor -%}
</ul>
{% if site.search == true %}
<button class="search__toggle" type="button">
<span class="visually-hidden">{{ site.data.ui-text[site.locale].search_label | default: 'Toggle search' }}</span>
<i class="fas fa-search"></i>
</button>
{% endif %}
<button class="greedy-nav__toggle hidden" type="button">
<span class="visually-hidden">{{ site.data.ui-text[site.locale].menu_label | default: 'Toggle menu' }}</span>
<div class="navicon"></div>
</button>
<ul class="hidden-links hidden"></ul>
</nav>
</div>
</div>
</div>