2021-10-19 04:45:11 +00:00
|
|
|
<footer class="py-10">
|
|
|
|
{{/* Footer menu */}}
|
|
|
|
{{ if .Site.Menus.footer }}
|
2021-12-21 02:22:45 +00:00
|
|
|
<nav class="pb-4 text-base font-medium text-neutral-500 dark:text-neutral-400">
|
2021-10-19 04:45:11 +00:00
|
|
|
<ul class="flex flex-col list-none sm:flex-row">
|
|
|
|
{{ range .Site.Menus.footer }}
|
|
|
|
<li class="mb-1 sm:mb-0 sm:mr-7 sm:last:mr-0">
|
|
|
|
<a
|
2021-12-24 23:53:46 +00:00
|
|
|
class="hover:underline hover:decoration-primary-500 hover:decoration-2 hover:underline-offset-2"
|
2021-10-19 04:45:11 +00:00
|
|
|
href="{{ .URL }}"
|
|
|
|
title="{{ .Title }}"
|
2021-10-26 23:34:50 +00:00
|
|
|
>{{ .Name | markdownify | emojify }}</a
|
2021-10-19 04:45:11 +00:00
|
|
|
>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{ end }}
|
2021-10-29 00:15:00 +00:00
|
|
|
<div class="flex justify-between">
|
|
|
|
<div>
|
|
|
|
{{/* Copyright */}}
|
2021-12-21 02:22:45 +00:00
|
|
|
<p class="text-sm text-neutral-500 dark:text-neutral-400">
|
2021-10-29 00:15:00 +00:00
|
|
|
{{- with .Site.Copyright }}
|
|
|
|
{{ . | emojify | markdownify }}
|
|
|
|
{{- else }}
|
|
|
|
©
|
|
|
|
{{ now.Format "2006" }}
|
|
|
|
{{ .Site.Author.name | markdownify | emojify }}
|
|
|
|
{{- end }}
|
|
|
|
</p>
|
|
|
|
{{/* Theme attribution */}}
|
|
|
|
{{ if .Site.Params.attribution | default true }}
|
2021-12-21 02:22:45 +00:00
|
|
|
<p class="text-xs text-neutral-400 dark:text-neutral-600">
|
2021-12-24 23:53:46 +00:00
|
|
|
{{ $hugo := printf `<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
|
2021-10-29 00:15:00 +00:00
|
|
|
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a>`
|
|
|
|
}}
|
2021-12-24 23:53:46 +00:00
|
|
|
{{ $congo := printf `<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://git.io/hugo-congo" target="_blank" rel="noopener noreferrer">Congo</a>` }}
|
2021-10-29 00:15:00 +00:00
|
|
|
{{ i18n "footer.powered_by" (dict "Hugo" $hugo "Congo" $congo) | safeHTML }}
|
|
|
|
</p>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2021-10-29 01:07:21 +00:00
|
|
|
{{/* Dark mode toggle */}}
|
|
|
|
{{ if and (.Site.Params.darkToggle | default false) (eq (.Site.Params.darkMode | default "auto") "auto") }}
|
|
|
|
<div class="text-sm cursor-pointer text-neutral-400 dark:text-neutral-500">
|
|
|
|
<button
|
|
|
|
id="dark-toggle"
|
|
|
|
onclick="setPreferredAppearance('dark');"
|
|
|
|
oncontextmenu="setPreferredAppearance('default'); return false;"
|
|
|
|
class="inline px-2 py-1 border rounded-md border-neutral-200 dark:hidden hover:text-primary-500 hover:border-primary-400"
|
2021-10-29 01:30:42 +00:00
|
|
|
title="{{ i18n "footer.dark_appearance" }}"
|
2021-10-29 01:07:21 +00:00
|
|
|
>
|
|
|
|
{{ partial "icon.html" "moon" }}
|
|
|
|
</button>
|
|
|
|
<button
|
|
|
|
id="light-toggle"
|
|
|
|
onclick="setPreferredAppearance('light');"
|
|
|
|
oncontextmenu="setPreferredAppearance('default'); return false;"
|
|
|
|
class="hidden px-2 py-1 border rounded-md cursor-pointer dark:inline border-neutral-700 hover:text-primary-400 hover:border-primary-500"
|
2021-10-29 01:30:42 +00:00
|
|
|
title="{{ i18n "footer.light_appearance" }}"
|
2021-10-29 01:07:21 +00:00
|
|
|
>
|
|
|
|
{{ partial "icon.html" "sun" }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-10-29 00:15:00 +00:00
|
|
|
</div>
|
2021-08-14 00:47:33 +00:00
|
|
|
{{/* Extend footer - eg. for extra scripts, etc. */}}
|
|
|
|
{{ if templates.Exists "partials/extend-footer.html" }}
|
|
|
|
{{ partialCached "extend-footer.html" . }}
|
|
|
|
{{ end }}
|
2021-08-11 05:28:33 +00:00
|
|
|
</footer>
|