Skip to content

Commit

Permalink
fix: only display footer switches section if it actually has content (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gr3q authored Dec 16, 2024
1 parent f377609 commit bc778ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


<footer class="hextra-footer hx-bg-gray-100 hx-pb-[env(safe-area-inset-bottom)] dark:hx-bg-neutral-900 print:hx-bg-transparent">
{{- if $enableFooterSwitches -}}
{{- if and $enableFooterSwitches (or hugo.IsMultilingual $displayThemeToggle) -}}
<div class="hx-mx-auto hx-flex hx-gap-2 hx-py-2 hx-px-4 {{ $footerWidth }}">
{{- partial "language-switch.html" (dict "context" .) -}}
{{- with $displayThemeToggle }}{{ partial "theme-toggle.html" }}{{ end -}}
Expand Down

0 comments on commit bc778ee

Please sign in to comment.