liebling/partials/navigation.hbs
2020-04-28 00:01:48 +02:00

21 lines
572 B
Handlebars

{{!--
This navigation template is shared across all the pages.
Also it includes the big submenu.
--}}
{{#if isSecondary}}
<ul class="m-secondary-menu" role="menu">
{{#foreach navigation}}
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="menuitem">
<a href="{{url absolute="true"}}">{{label}}</a>
</li>
{{/foreach}}
</ul>
{{else}}
{{#foreach navigation}}
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}" role="menuitem">
<a href="{{url absolute="true"}}">{{label}}</a>
</li>
{{/foreach}}
{{/if}}