hugo_idunn/layouts/partials/social.html

15 lines
356 B
HTML
Raw Permalink Normal View History

{{ if $.Site.Params.social }}
{{ $len := (len $.Site.Params.social) }}
{{ if gt $len 0 }}
<div id="social">
{{ range $network, $link := $.Site.Params.social }}
{{ if $link }}
<a href="{{ $link }}" alt="{{ $network }}">
<img class="social-icon" src="/svg/{{ $network }}.svg"/>
</a>
{{ end }}
{{ end }}
</div>
{{ end}}
{{ end }}