forked from GSA/https
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidenav.html
More file actions
28 lines (27 loc) · 786 Bytes
/
sidenav.html
File metadata and controls
28 lines (27 loc) · 786 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
25
26
27
28
<ul class="usa-sidenav-list">
{% for link in include.links %}
{% assign _href = link.href %}
{% assign _current = false %}
{% if link.href == page.url or link.href == page.permalink %}
{% assign _current = true %}
{% endif %}
<li>
<a href="{{ _href | relative_url }}"{% if _current %}
class="usa-current"{% endif %}>
{{ link.text }}
</a>
{% if _current and page.subnav %}
<ul class="usa-sidenav-sub_list">
{% for link in page.subnav %}
<li>
<a href="{{ link.href }}">{{ link.text }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
<p>
<a href="{{ site.repo }}/edit/master/{{ page.path }}" class="usa-sidenav-edit" target="_blank">Edit this page </a>
</p>
</ul>