mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 10:58:33 +00:00
26 lines
743 B
HTML
26 lines
743 B
HTML
<!-- List all of the social media links -->
|
|
{{ with (index $.Site.Data "more-contentful").contacts }}
|
|
<ul class="list 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)) }}
|
|
<li>
|
|
<a {{ if $useImage }}class="site__social-icon"{{ end }} rel="me" href="{{ .url | absLangURL }}" aria-label="{{ with .name }}{{ . }}{{ else }}{{ .id }}{{ end }}">
|
|
{{- .name }}
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
{{- end -}}
|
|
</ul>
|
|
<style>
|
|
.site__socials--content {
|
|
margin: auto;
|
|
}
|
|
</style>
|
|
{{ end }}
|
|
|