mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-08 03:19:02 +00:00
20 lines
794 B
HTML
20 lines
794 B
HTML
![]() |
<footer class="site__footer">
|
||
|
{{- with $.Site.Data.contact.list -}}
|
||
|
<div class="footer__links">
|
||
|
{{- $willUseIcons := (eq $.Site.Params.useLinkIcons true) -}}
|
||
|
{{- $socialIcons := "social-icons.svg" | absURL -}}
|
||
|
{{- $socialLinks := (sort . "id" "asc") -}}
|
||
|
{{- range $socialLinks -}}
|
||
|
<a class="footer__link" href="{{ .url }}">
|
||
|
{{- if $willUseIcons -}}
|
||
|
<svg class="icon">
|
||
|
<use xlink:href="{{ $socialIcons }}#{{ .id }}"></use></svg>
|
||
|
{{- else -}}
|
||
|
{{- if .name -}}{{ .name }}{{- else -}}{{ .id }}{{- end -}}
|
||
|
{{- end -}}
|
||
|
</a>
|
||
|
{{- end -}}
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
<p class="footer__sign">{{ with $.Site.Copyright }}{{ . | markdownify }}{{ else }}© {{ now.Year }} {{ $.Site.Author.name }}{{ end }}</p>
|
||
|
</footer>
|