weflock/partials/navigation.hbs
Badri Sunderarajan 033a36c35c Add support for extra social icons!
The catch is we will no longer have a secondary footer menu at the
bottom - but hey, we can put the socials there as well ;)
2021-11-07 00:44:24 +05:30

19 lines
656 B
Handlebars

{{#if isSecondary}}
<div class="gh-social">
{{#foreach navigation}}
<a class="gh-social-{{slug}}" href="{{url}}" title="{{slug}}" target="_blank" rel="noopener">
<svg width="16" height="16" role="img" aria-label="{{slug}} icon">
<use xlink:href="#{{slug}}"></use>
</svg>
</a>
{{/foreach}}
</div>
{{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}}