<!-- List all of the social media links -->
{{ with (index $.Site.Data "more-contentful").contacts }}
<nav class="site__socials--content">
  {{ $useImage := index . "useImage" | default false }}

  {{ $links := sort .links "name" "asc" }}
  {{- range $links -}}

  {{- /* Render the link only to externally linked pages/files and those with >=0 weight. */ -}}
  {{ if (and (not .excludeInMenu) (eq (absLangURL .url) .url)) }}
    <a {{ if $useImage }}class="site__social-icon"{{ end }} rel="me" href="{{ .url | absLangURL }}" aria-label="{{ with .name }}{{ . }}{{ else }}{{ .id }}{{ end }}">
      {{- .name }}
    </a>
  {{ end }}
  {{- end -}}
</nav>
{{ end }}
