2024-04-12 19:22:00 +00:00
|
|
|
<nav
|
2024-10-14 14:54:17 +00:00
|
|
|
id="menu-{{ content.name }}"
|
2024-06-29 03:36:26 +00:00
|
|
|
class="menu {{ content.css_classes }}"
|
2024-10-14 14:54:17 +00:00
|
|
|
>
|
|
|
|
|
|
|
|
{% 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 %}
|
|
|
|
|
2024-04-12 19:22:00 +00:00
|
|
|
<menu>
|
2024-04-12 19:22:00 +00:00
|
|
|
{% for item in content.items %}
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="{{ item['url'] }}"
|
|
|
|
{% if not item['endpoint'] %}
|
2024-06-29 03:36:26 +00:00
|
|
|
target="_blank"
|
2024-04-12 19:22:00 +00:00
|
|
|
{% endif %}
|
|
|
|
class="
|
|
|
|
{{ item['state'] }}
|
|
|
|
{% if item['endpoint'] %}internal{% else %}external{% endif %}
|
2024-05-13 02:52:45 +00:00
|
|
|
{% if item['classes'] %}{{ item['classes'] }}{% endif %}
|
2024-04-12 19:22:00 +00:00
|
|
|
"
|
|
|
|
>{{ item['label'] }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2024-04-12 19:22:00 +00:00
|
|
|
</menu>
|
2024-04-12 19:22:00 +00:00
|
|
|
</nav>
|