fix(sidebar): translation selector - avoid cast per PR #950 (#961)

avoid cast per PR #950
This commit is contained in:
James McMurry 2024-03-02 16:16:27 -06:00 committed by GitHub
parent 405e84291a
commit 9bb3165ff0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,7 @@
<div class="menu-bottom-section">
{{- $currentLanguageCode := .Language.Lang -}}
{{ if ( compare.Gt .Site.Home.AllTranslations 1 ) }}
{{ if ( compare.Gt .Site.Home.AllTranslations.Len 1 ) }}
{{ with .Site.Home.AllTranslations }}
<li id="i18n-switch">
{{ partial "helper/icon" "language" }}