pdnew/themes/default/templates/renderable/menu.html

31 lines
998 B
HTML
Raw Permalink Normal View History

2024-04-12 19:22:00 +00:00
<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>
2024-04-12 19:22:00 +00:00
{% for item in content.items %}
<li>
<a
href="{{ item['url'] }}"
{% if not item['endpoint'] %}
target="_blank"
2024-04-12 19:22:00 +00:00
{% endif %}
class="
{{ item['state'] }}
{% if item['endpoint'] %}internal{% else %}external{% endif %}
{% if item['classes'] %}{{ item['classes'] }}{% endif %}
2024-04-12 19:22:00 +00:00
"
>{{ item['label'] }}</a>
</li>
{% endfor %}
</menu>
2024-04-12 19:22:00 +00:00
</nav>