Optionally disable footer menu. Enabled by default

This commit is contained in:
madoke 2022-10-16 21:28:27 +01:00
parent cffcd94daa
commit 11120610fd
2 changed files with 14 additions and 11 deletions

View file

@ -16,6 +16,7 @@ enableCodeCopy = true
# robots = ""
[footer]
showMenu = true
showCopyright = true
showThemeAttribution = true
showAppearanceSwitcher = true

View file

@ -1,5 +1,6 @@
<footer class="py-10 print:hidden">
{{/* Footer menu */}}
{{ if .Site.Params.footer.showMenu }}
{{ if .Site.Menus.footer }}
<nav class="pb-4 text-base font-medium text-neutral-500 dark:text-neutral-400">
<ul class="flex flex-col list-none sm:flex-row">
@ -12,6 +13,7 @@
</ul>
</nav>
{{ end }}
{{ end }}
<div class="flex items-center justify-between">
{{/* Copyright */}}