1
0
Fork 0

Remove categories

This commit is contained in:
Mo 2022-10-29 21:14:35 +02:00
parent 0d38235262
commit 16a384eedc

View file

@ -47,7 +47,6 @@
<div class="collapse navbar-collapse" id="navbarNav"> <div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav"> <ul class="navbar-nav">
{% for menu_item in config.extra.menu_items %} {% for menu_item in config.extra.menu_items %}
{% if menu_item.url %}
<!-- Single item, not a category --> <!-- Single item, not a category -->
<li class="nav-item"> <li class="nav-item">
<a <a
@ -59,30 +58,6 @@
</span> </span>
</a> </a>
</li> </li>
{% else %}
<!-- Category with multiple subitems -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<font color="{{ config.extra.secondary_color }}">
{{ menu_item.name }}
</font>
</a>
<ul class="dropdown-menu">
{% for link in menu_item.links %}
<li>
<a
class="dropdown-item"
href="{{ link.url }}"
>
<font color="{{ config.extra.secondary_color }}">
{{ link.name }}
</font>
</a>
</li>
{% endfor %}
</ul>
</li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>