💥 Move footer parameters to their own sub-group

This commit is contained in:
James Panther
2022-06-27 10:30:07 +10:00
parent aa102e67de
commit efbeceaa4f
6 changed files with 23 additions and 18 deletions
+4 -4
View File
@@ -21,7 +21,7 @@
<div class="flex items-center justify-between">
<div>
{{/* Copyright */}}
{{ if .Site.Params.showCopyright | default true }}
{{ if .Site.Params.footer.showCopyright | default true }}
<p class="text-sm text-neutral-500 dark:text-neutral-400">
{{- with .Site.Params.copyright }}
{{ . | emojify | markdownify }}
@@ -33,7 +33,7 @@
</p>
{{ end }}
{{/* Theme attribution */}}
{{ if .Site.Params.showThemeAttribution | default true }}
{{ if .Site.Params.footer.showThemeAttribution | default true }}
<p class="text-xs text-neutral-500 dark:text-neutral-400">
{{ $hugo := printf `<a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a>`
@@ -44,9 +44,9 @@
{{ end }}
</div>
{{/* Appearance switch */}}
{{ if .Site.Params.showAppearanceSwitcher | default false }}
{{ if .Site.Params.footer.showAppearanceSwitcher | default false }}
<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 -}}
class="text-sm cursor-pointer text-neutral-700 dark:text-neutral hover:text-primary-600 dark:hover:text-primary-400 {{ if .Site.Params.footer.showScrollToTop | default true -}}
ltr:mr-14 rtl:ml-14
{{- end }}"
>