liebling/partials/navigation.hbs

21 lines
528 B
Handlebars
Raw Normal View History

2019-04-14 18:41:25 +00:00
{{!--
This navigation template is shared across all the pages.
Also it includes the big submenu.
--}}
2020-04-27 22:01:48 +00:00
{{#if isSecondary}}
2020-07-07 15:13:29 +00:00
<ul class="m-secondary-menu">
2020-04-27 22:01:48 +00:00
{{#foreach navigation}}
2020-07-07 15:13:29 +00:00
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}">
2020-04-27 22:01:48 +00:00
<a href="{{url absolute="true"}}">{{label}}</a>
</li>
{{/foreach}}
</ul>
{{else}}
{{#foreach navigation}}
2020-07-07 15:13:29 +00:00
<li class="nav-{{slug}}{{#if current}} nav-current{{/if}}">
2020-04-27 22:01:48 +00:00
<a href="{{url absolute="true"}}">{{label}}</a>
</li>
{{/foreach}}
{{/if}}