FIx deprecation warning

This commit is contained in:
Andreas Deininger 2024-03-25 21:25:03 +01:00 committed by Sören Weber
parent b063a362e9
commit f8e36bb08c
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -49,7 +49,7 @@
</div>
{{- end }}
{{- $siteLanguages := .Site.Languages }}
{{- $showlangswitch := and .Site.IsMultiLingual (not .Site.Params.disableLanguageSwitchingButton) (gt (int (len $siteLanguages)) 1) }}
{{- $showlangswitch := and hugo.IsMultilingual (not .Site.Params.disableLanguageSwitchingButton) (gt (int (len $siteLanguages)) 1) }}
{{- $themevariants := partialCached "get-theme-variants.hugo" . }}
{{- $showvariantswitch := gt (int (len $themevariants)) 1 }}
{{- $footer := partial "menu-footer.html" . }}