Only show footer section for copyright and PoweredBy if they are enabled

This commit is contained in:
Attila Greguss 2024-12-18 10:37:49 +00:00
parent aa557df8aa
commit 13e11d59d2

View File

@ -29,6 +29,7 @@
>
{{ partial "custom/footer.html" . }}
</div>
{{- if or (.Site.Params.footer.displayPoweredBy | default true) .Site.Params.footer.displayCopyright}}
<div
class="{{ $footerWidth }} hx-mx-auto hx-flex hx-justify-center hx-py-12 hx-pl-[max(env(safe-area-inset-left),1.5rem)] hx-pr-[max(env(safe-area-inset-right),1.5rem)] hx-text-gray-600 dark:hx-text-gray-400 md:hx-justify-start"
>
@ -37,6 +38,7 @@
{{- if .Site.Params.footer.displayCopyright }}<div class="hx-text-xs">{{ $copyright | markdownify }}</div>{{ end }}
</div>
</div>
{{- end -}}
</footer>
{{- define "theme-credit" -}}