forked from VividCortex/go-database-sql-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleftnav.html
More file actions
22 lines (22 loc) · 702 Bytes
/
leftnav.html
File metadata and controls
22 lines (22 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div class="leftnav">
<ul class="nav nav-list">
{% for group in page.nav %}
{% capture group_url %}/{{ page.name }}/{{ group.url }}{% endcapture %}
<li class="nav-header{% if page.url == node_url %} active{% endif %}">
{% if page.url %}
<a href="{{group.url}}">{{group.name}}</a>
{% else %}
{{group.name}}
{% endif %}
</li>
{% for node in group.articles %}
{% capture node_url %}/{{ page.name }}/{{ node.url }}{% endcapture %}
{% if page.url == node_url %}
<li class="active"><a href="{{node.url}}">{{node.title}}</a></li>
{% else %}
<li><a href="{{node.url}}">{{node.title}}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>