-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathprimary-navigation.html
More file actions
24 lines (21 loc) · 958 Bytes
/
primary-navigation.html
File metadata and controls
24 lines (21 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<nav class="nhsuk-header__navigation" aria-label="Menu">
<div class="nhsuk-header__navigation-container nhsuk-width-container">
<ul class="nhsuk-header__navigation-list">
{% for p in site.data.primary-navigation -%}
{% assign is_current = false %}
{% if page.url == p.link or page.url contains p.link and p.link != '/' %}
{% assign is_current = true %}
{% endif %}
<li class="nhsuk-header__navigation-item">
<a class="nhsuk-header__navigation-link" href="{{ site.baseurl | append: p.link | xml_escape }}" {% if
is_current %} aria-current="page" {% endif %}>{{ p.title }}</a>
</li>
{% endfor -%}
<li class="nhsuk-header__menu" hidden>
<button class="nhsuk-header__menu-toggle nhsuk-header__navigation-link" id="toggle-menu" aria-expanded="false">
<span class="nhsuk-u-visually-hidden">Browse </span>More
</button>
</li>
</ul>
</div>
</nav>