2023-08-07 23:48:07 +01:00
|
|
|
{{- $enableFooterSwitches := .Scratch.Get "enableFooterSwitches" | default false -}}
|
|
|
|
|
|
|
|
|
2023-07-27 00:05:47 +01:00
|
|
|
<footer class="bg-gray-100 pb-[env(safe-area-inset-bottom)] dark:bg-neutral-900 print:bg-transparent">
|
2023-08-07 23:48:07 +01:00
|
|
|
{{- if $enableFooterSwitches }}{{ template "footer-switches" }}{{ end -}}
|
2023-07-27 00:05:47 +01:00
|
|
|
<hr class="dark:border-neutral-800" />
|
|
|
|
<div class="mx-auto flex max-w-[90rem] justify-center py-12 pl-[max(env(safe-area-inset-left),1.5rem)] pr-[max(env(safe-area-inset-right),1.5rem)] text-gray-600 dark:text-gray-400 md:justify-start">
|
|
|
|
<div class="flex w-full flex-col items-center sm:items-start">
|
|
|
|
<div>
|
|
|
|
<a class="flex items-center gap-1 text-current" target="_blank" rel="noopener noreferrer" title="Hugo homepage" href="https://gohugo.io/">
|
|
|
|
<span>Powered by</span>
|
2023-08-02 23:14:55 +01:00
|
|
|
{{ partial "utils/icon.html" (dict "name" "hugo-full" "attributes" "height=20") }}
|
2023-07-27 00:05:47 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<p class="mt-6 text-xs">© 2023 Hextra Project.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|
2023-08-07 23:48:07 +01:00
|
|
|
|
|
|
|
{{- define "footer-switches" -}}
|
|
|
|
<div class="mx-auto flex max-w-[90rem] gap-2 py-2 px-4">
|
|
|
|
{{ partial "theme-toggle.html" }}
|
|
|
|
</div>
|
|
|
|
{{- end -}}
|