20 lines
656 B
Handlebars
20 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}}
|