phryk
a1a2cde38a
* All menus have IDs now * Added support for burgerized menus; burgerized main menu and minisearch * Fixed menu in Listing objects * Fixed issue with invalid datetime-local values * Improved section breakout logic for inline renderables in markdown * Search now ignores abstract content types * Added some assets * Various other things, mostly theming-related
31 lines
998 B
HTML
31 lines
998 B
HTML
<nav
|
|
id="menu-{{ content.name }}"
|
|
class="menu {{ content.css_classes }}"
|
|
>
|
|
|
|
{% if content.burger %}
|
|
<div id="{{ content.name }}-show" class="burgers">
|
|
<a href="#{{ content.name }}-show" id="{{ content.name }}-hide" class="burger show">Open menu</a>
|
|
<a href="#{{ content.name }}-hide" class="burger hide">Close menu</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<menu>
|
|
{% for item in content.items %}
|
|
<li>
|
|
<a
|
|
href="{{ item['url'] }}"
|
|
{% if not item['endpoint'] %}
|
|
target="_blank"
|
|
{% endif %}
|
|
class="
|
|
{{ item['state'] }}
|
|
{% if item['endpoint'] %}internal{% else %}external{% endif %}
|
|
{% if item['classes'] %}{{ item['classes'] }}{% endif %}
|
|
"
|
|
>{{ item['label'] }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
</menu>
|
|
</nav>
|