weflock/partials/navigation.hbs
Badri Sunderarajan cb3fbfc08d Separate secondary navigation from social links
We can now set social links using custom properties, leaving the
secondary navigation free for other things (like complying with
payment gateway standards)!
2023-02-11 18:35:18 +05:30

17 lines
477 B
Handlebars

{{#if isSecondary}}
<ul class="nav-secondary">
{{#foreach navigation}}
<li class="{{link_class for=(url) class=(concat "nav-" slug)}}">
<a href="{{url absolute="true"}}">{{label}}</a>
</li>
{{/foreach}}
</ul>
{{else}}
<ul class="nav">
{{#foreach navigation}}
<li class="{{link_class for=(url) class=(concat "nav-" slug)}}">
<a href="{{url absolute="true"}}">{{label}}</a>
</li>
{{/foreach}}
</ul>
{{/if}}