Maybe like this

This commit is contained in:
RealStickman 2022-11-19 20:25:12 +01:00
parent 03a211ce84
commit 2e0ff5e3cc

View File

@ -10,10 +10,10 @@
{% set parent_page = p.activeChild ? ' parent' : '' %} {% set parent_page = p.activeChild ? ' parent' : '' %}
{% set current_page = p.active ? ' active' : '' %} {% set current_page = p.active ? ' active' : '' %}
<li class="dd-item{{ parent_page }}{{ current_page }}" data-nav-id="{{ p.route }}"> <li class="dd-item{{ parent_page }}{{ current_page }}" data-nav-id="{{ p.route }}">
{#<a href="{{ p.url }}" {% if p.header.class %}class="{{ p.header.class }}"{% endif %}>#} <a href="{{ p.url }}" {% if p.header.class %}class="{{ p.header.class }}"{% endif %}>
{#<i class="fa fa-check read-icon"></i>#} {#<i class="fa fa-check read-icon"></i>#}
{#<span><b>{% if data_level == 0 %}{{ loop.index }}. {% endif %}</b>{{ p.menu }}</span>#} {#<span><b>{% if data_level == 0 %}{{ loop.index }}. {% endif %}</b>{{ p.menu }}</span>#}
{#</a>#} </a>
{% if p.children.count > 0 %} {% if p.children.count > 0 %}
<ul> <ul>
{{ self.loop(p, parent_loop|default(0)+loop.index) }} {{ self.loop(p, parent_loop|default(0)+loop.index) }}