Added possibility to insert headers in menu.

This commit is contained in:
Antoine Nguyen
2018-01-04 13:50:14 +01:00
parent e0f5b8b92a
commit f9341633c6
+3 -1
View File
@@ -23,7 +23,9 @@
<ul class="dropdown-menu">
{% for sentry in entry.menu %}
{% if sentry.divider %}
<li class="divider"></li>
<li class="divider"></li>
{% elif sentry.header %}
<li class="dropdown-header">{{ sentry.label }}</li>
{% else %}
<li>{% render_link sentry %}</li>
{% endif %}