Hi all!
This is the navigation.hbs file in Maali:
<ul class="nav{{#if isSecondary}} secondary submenu{{/if}}">
{{#foreach navigation}}
<li class="{{link_class for=(url) class=(concat "nav-" slug)}}{{#match label.[0] "-"}} is-subitem{{/match}}"
data-label="{{label}}" data-length="{{label.length}}">
<a href="{{url absolute="true"}}">
<span>{{label}}</span>
</a>
</li>
{{/foreach}}
</ul>
It places a subitem under an item in the primary navigation when “-” is added in the navigation backend.
How can I adapt this code so “- -” adds a subitem under a subitem?
So, for example:
Elections
- General Elections
- - 2024 General Election
- Local Elections
- - 2023 Local Elections
and so on