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 }}
|
2022-04-01 00:37:32 +00:00
|
|
|
<li class="mb-1 ltr:text-right rtl:text-left sm:mb-0 ltr:sm:mr-7 ltr:sm:last:mr-0 rtl:sm:ml-7 rtl:sm:last:ml-0">
|
2021-10-19 04:45:11 +00:00
|
|
|
<a
|
2022-02-20 03:36:36 +00:00
|
|
|
class="decoration-primary-500 hover:underline 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">
|
2022-01-27 04:42:05 +00:00
|
|
|
{{- with .Site.Params.copyright }}
|
2021-10-29 00:15:00 +00:00
|
|
|
{{ . | emojify | markdownify }}
|
|
|
|
{{- else }}
|
|
|
|
©
|
|
|
|
{{ now.Format "2006" }}
|
|
|
|
{{ .Site.Author.name | markdownify | emojify }}
|
|
|
|
{{- end }}
|
|
|
|
</p>
|
|
|
|
{{/* Theme attribution */}}
|
|
|
|
{{ if .Site.Params.attribution | default true }}
|
2022-01-12 01:20:04 +00:00
|
|
|
<p class="text-xs text-neutral-500 dark:text-neutral-400">
|
2021-12-24 23:53:46 +00:00
|
|
|
{{ $hugo := printf `<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
|
2022-01-18 06:26:46 +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>
|
2022-01-27 04:26:18 +00:00
|
|
|
{{/* Appearance switch */}}
|
|
|
|
{{ if .Site.Params.showAppearanceSwitcher | default false }}
|
2022-01-18 23:25:48 +00:00
|
|
|
<div
|
|
|
|
class="text-sm cursor-pointer text-neutral-700 dark:text-neutral hover:text-primary-600 dark:hover:text-primary-400 {{ if .Site.Params.showScrollToTop | default true -}}
|
|
|
|
ltr:mr-14 rtl:ml-14
|
|
|
|
{{- end }}"
|
|
|
|
>
|
2021-10-29 01:07:21 +00:00
|
|
|
<button
|
2022-01-27 04:26:18 +00:00
|
|
|
id="appearance-switcher"
|
|
|
|
class="w-12 h-12 "
|
|
|
|
type="button"
|
2021-10-29 01:30:42 +00:00
|
|
|
title="{{ i18n "footer.dark_appearance" }}"
|
2021-10-29 01:07:21 +00:00
|
|
|
>
|
2022-01-27 04:26:18 +00:00
|
|
|
<span class="inline dark:hidden">{{ partial "icon.html" "moon" }}</span>
|
|
|
|
<span class="hidden dark:inline">{{ partial "icon.html" "sun" }}</span>
|
2021-10-29 01:07:21 +00:00
|
|
|
</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>
|