pdnew/themes/default/templates/renderable/menu.html
phryk a1a2cde38a A boatload of changes, fixes, improvements and theming work.
* 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
2024-10-14 16:54:17 +02:00

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>