-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenubar.html
More file actions
21 lines (20 loc) · 740 Bytes
/
Copy pathmenubar.html
File metadata and controls
21 lines (20 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% assign menus = site.data.[page.menubar] %}
<aside class="menu">
{% for menu in menus %}
<p class="menu-label">{{ menu.label }}</p>
<ul class="menu-list">
{% for item in menu.items %}
<li>
<a href="{{ item.link | relative_url }}" class="{% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
{% if item.items %}
<ul>
{% for subitem in item.items %}
<li><a href="{{ subitem.link | relative_url }}" class="{% if subitem.link == page.url %}is-active{% endif %}">{{ subitem.name }}</a></li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endfor %}
</aside>