forked from Sync/hugo-theme-stack
avoid cast per PR #950
This commit is contained in:
parent
405e84291a
commit
9bb3165ff0
@ -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" }}
|
||||
|
Loading…
Reference in New Issue
Block a user