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
26 lines (26 loc) · 943 Bytes
/
leftnav.html
File metadata and controls
26 lines (26 loc) · 943 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
<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>
<hr />
<div class="license">
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png" /></a>
</div>
</div>