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>
|