Sign in

Need help with sub menus and add classes

#3947
nicholasoneil

Hi, I’d like to try to set it up like this:

{{#unless level}}
                <nav>
                {{/unless}}
                    <ul class="nav navbar-nav">
                        {{#each items}}
                            <li class="nav-item">
                            {{#if link}}
                                {{label}}
                            {{/if}}
                
                            {{#if items}}
                                <li class="nav-item dropdown">
                                    {{label}}&nbsp;
                                    
                                
                            {{/if}}
                        
                        {{/each}}
                    
                {{#unless level}}
                </nav>
                {{/unless}}