fix: use hugo.IsMultilingual to replace deprecated .Site.IsMultiLingual (#404)

This commit is contained in:
Andreas Deininger
2024-05-29 10:11:25 +02:00
committed by GitHub
parent 857c4e4ca1
commit b2bc4f7098
7 changed files with 11 additions and 9 deletions

View File

@ -20,7 +20,7 @@
{{- partial "language-switch.html" (dict "context" .) -}}
{{- with $displayThemeToggle }}{{ partial "theme-toggle.html" }}{{ end -}}
</div>
{{- if or site.IsMultiLingual $displayThemeToggle -}}
{{- if or hugo.IsMultilingual $displayThemeToggle -}}
<hr class="dark:hx-border-neutral-800" />
{{- end -}}
{{- end -}}