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 23:16:27 +01:00
committed by GitHub
parent 405e84291a
commit 9bb3165ff0
+1 -1
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" }}