{{/* Footer menu */}} {{ if .Site.Menus.footer }}
    {{ range .Site.Menus.footer }} {{ if and (eq .Params.action "locale") (or (not page.IsTranslated) (not hugo.IsMultilingual)) }} {{ continue }} {{ end }}
  • {{ if eq .Params.action "search" }} {{ $.Scratch.Add "searchCount" 1 }} {{ if $.Site.Params.enableSearch | default false }} {{ end }} {{ else if eq .Params.action "appearance" }} {{ $.Scratch.Add "switchCount" 1 }} {{ else if eq .Params.action "locale" }} {{ $.Scratch.Add "localeCount" 1 }} {{ partial "translations.html" (dict "ctx" . "dir" "up") }} {{ else }} {{ with .Params.icon }} {{- partial "icon.html" . -}} {{- end -}}{{- if .Params.showName | default true -}} {{ .Name | markdownify | emojify }} {{ end }} {{ end }}
  • {{ end }}
{{ end }}
{{/* Copyright */}} {{ if .Site.Params.footer.showCopyright | default true }}

{{- with site.Copyright }} {{ . | emojify | markdownify }} {{- else }} © {{ now.Format "2006" }} {{ .Site.Language.Params.Author.name | markdownify | emojify }} {{- end }}

{{ end }} {{/* Theme attribution */}} {{ if .Site.Params.footer.showThemeAttribution | default true }}

{{ $hugo := printf `Hugo` }} {{ $congo := printf `Congo` }} {{ i18n "footer.powered_by" (dict "Hugo" $hugo "Congo" $congo) | safeHTML }}

{{ end }}
{{/* Locale switcher */}} {{ if and (.IsTranslated) (eq ($.Scratch.Get "localeCount") 0) }}
{{ partial "translations.html" (dict "ctx" . "dir" "up") }}
{{ end }} {{/* Appearance switcher */}} {{ if .Site.Params.footer.showAppearanceSwitcher | default false }}
{{ end }}
{{/* Extend footer - eg. for extra scripts, etc. */}} {{ if templates.Exists "partials/extend-footer.html" }} {{ partial "extend-footer.html" . }} {{ end }}