ghost_leaders_theme/partials/navigation.hbs

11 lines
517 B
Handlebars

<ul class="flex flex-col md:flex-row">
{{#if isSecondary}}
{{#foreach navigation}}
<li class="{{link_class for=(url) class=(concat "nav-" slug)}}"><button class="py-2 px-3 rounded-full bg-orange-500 "><a href="{{url absolute="true"}}">{{label}}</a></button></li>
{{/foreach}}
{{else}}
{{#foreach navigation}}
<li class="mx-5 {{link_class for=(url) class=(concat "nav-" slug)}}"><a href="{{url absolute="true"}}">{{label}}</a></li>
{{/foreach}}
{{/if}}
</ul>