website/themes/terminal-plus-minus/layouts/partials/footer.html
2019-09-02 01:51:06 +08:00

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>