mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 04:31:53 +02:00
Optionally disable footer menu. Enabled by default
This commit is contained in:
parent
cffcd94daa
commit
11120610fd
2 changed files with 14 additions and 11 deletions
|
@ -16,6 +16,7 @@ enableCodeCopy = true
|
||||||
# robots = ""
|
# robots = ""
|
||||||
|
|
||||||
[footer]
|
[footer]
|
||||||
|
showMenu = true
|
||||||
showCopyright = true
|
showCopyright = true
|
||||||
showThemeAttribution = true
|
showThemeAttribution = true
|
||||||
showAppearanceSwitcher = true
|
showAppearanceSwitcher = true
|
||||||
|
|
|
@ -1,16 +1,18 @@
|
||||||
<footer class="py-10 print:hidden">
|
<footer class="py-10 print:hidden">
|
||||||
{{/* Footer menu */}}
|
{{/* Footer menu */}}
|
||||||
{{ if .Site.Menus.footer }}
|
{{ if .Site.Params.footer.showMenu }}
|
||||||
<nav class="pb-4 text-base font-medium text-neutral-500 dark:text-neutral-400">
|
{{ if .Site.Menus.footer }}
|
||||||
<ul class="flex flex-col list-none sm:flex-row">
|
<nav class="pb-4 text-base font-medium text-neutral-500 dark:text-neutral-400">
|
||||||
{{ range .Site.Menus.footer }}
|
<ul class="flex flex-col list-none sm:flex-row">
|
||||||
<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">
|
{{ range .Site.Menus.footer }}
|
||||||
<a class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2" href="{{ .URL }}"
|
<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">
|
||||||
title="{{ .Title }}">{{ .Name | markdownify | emojify }}</a>
|
<a class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2" href="{{ .URL }}"
|
||||||
</li>
|
title="{{ .Title }}">{{ .Name | markdownify | emojify }}</a>
|
||||||
{{ end }}
|
</li>
|
||||||
</ul>
|
{{ end }}
|
||||||
</nav>
|
</ul>
|
||||||
|
</nav>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue