mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 10:58:33 +00:00
18 lines
663 B
HTML
18 lines
663 B
HTML
<!-- 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 }}
|