binario/layouts/partials/footer_social.html

11 lines
No EOL
390 B
HTML

{{- if .Site.Params.social }}
<div class="footer__social social">
{{- range sort .Site.Data.social.icons "weight" }}
{{- if isset $.Site.Params.Social .id }}
<a class="social__link" target="_blank" rel="noopener noreferrer" href="{{ printf .url (index $.Site.Params.Social .id) }}">
{{ partial .icon (dict "class" "social__icon") }}
</a>
{{- end }}
{{- end }}
</div>
{{- end }}