mirror of
https://github.com/imfing/hextra.git
synced 2025-05-13 01:26:25 -04:00
Only show footer section for copyright and PoweredBy if they are enabled
This commit is contained in:
parent
aa557df8aa
commit
13e11d59d2
@ -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" -}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user