Skip to content

Commit 9bb3165

Browse files
authored
fix(sidebar): translation selector - avoid cast per PR CaiJimmy#950 (CaiJimmy#961)
avoid cast per PR CaiJimmy#950
1 parent 405e842 commit 9bb3165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/sidebar/left.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
7777

7878
<div class="menu-bottom-section">
7979
{{- $currentLanguageCode := .Language.Lang -}}
80-
{{ if ( compare.Gt .Site.Home.AllTranslations 1 ) }}
80+
{{ if ( compare.Gt .Site.Home.AllTranslations.Len 1 ) }}
8181
{{ with .Site.Home.AllTranslations }}
8282
<li id="i18n-switch">
8383
{{ partial "helper/icon" "language" }}

0 commit comments

Comments
 (0)