liebling/partials/navigation.hbs
2020-07-07 17:13:29 +02:00

21 lines
528 B
Handlebars

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