<footer aria-label="{{ T "siteFooterAriaLabel" }}">
<!-- A convenient back to top link. -->
<p><a href="#top">{{ T "back_to_top" | default "Back to top" }}</a></p>

<!-- Linking to other languages' homepage. -->
{{ if hugo.IsMultilingual }}
  <p>{{ T "multilingual" }}:
  <span class="list site__languages">
  {{ range $.Site.Languages }}
    <a href="{{ . | relURL }}" hreflang="{{ .Lang }}">{{ with .LanguageName }}{{ . }}{{ else }}{{ .Lang }}{{ end }}</a>
  {{ end }}
  </span>
</p>
{{ end }}


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

  {{ $links := sort .links "id" "asc" }}
  {{ $links = sort $links "weight" "asc" }}
  {{- range $links -}}
  <li>
    <a {{ if $useImage }}class="site__social-icon"{{ end }} rel="me" href="{{ .url | relLangURL }}" aria-label="{{ with .name }}{{ . }}{{ else }}{{ .id }}{{ end }}">
    {{- if $useImage }}
      {{- partial "components/simple-icon.html" (dict "id" .id) }}
    {{- else }}
      {{- .name }}
    {{- end }}
    </a>
  </li>
  {{- end -}}
</ul>
{{ end }}


<!-- Copyright info. -->
{{- $markdownifyOpt := dict "display" "inline"
                            "markup" "markdown" -}}
<p>{{ with $.Site.Copyright }}{{ trim . " " | $.Page.RenderString $markdownifyOpt }}{{ else }}© {{ now.Year }} {{ with $.Site.Author.name }}{{ . }}{{ else }}{{ $.Site.Title }}{{ end }}{{ end }}</p>

{{- /* Extra notes */ -}}
{{- with $.Site.Params.extraNotes }}
<p>{{ trim . " " | $.Page.RenderString $markdownifyOpt }}</p>
{{- end }}

<p>
<small>{{ T "generatedOn" }} {{ now.Format "2006-01-02 15:04:05 -0700" }}</small></p>

{{ with (getenv "LAST_COMMIT_DATE") }}
<p>{{ T "lastUpdated" }}: {{ time . | dateFormat "2 Jan 2006" }}</p>
{{ end }}

{{ $logo := resources.Get "svg/logo.svg" }}
<div id="logo" data-tooltip="Hey there! :3">
{{ $logo.Content | safeHTML }}
</div>

<noscript>{{ T "siteFeaturesScriptingDisabled" }}</noscript>
</footer>
