mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 18:31:45 +01:00
fix(sidebar): hide translations selector if only one translation available (#950)
hide translations menu if only one translation available
This commit is contained in:
parent
255abd5c88
commit
800f815988
1 changed files with 12 additions and 10 deletions
|
@ -77,6 +77,7 @@
|
||||||
|
|
||||||
<div class="menu-bottom-section">
|
<div class="menu-bottom-section">
|
||||||
{{- $currentLanguageCode := .Language.Lang -}}
|
{{- $currentLanguageCode := .Language.Lang -}}
|
||||||
|
{{ if ( compare.Gt .Site.Home.AllTranslations 1 ) }}
|
||||||
{{ with .Site.Home.AllTranslations }}
|
{{ with .Site.Home.AllTranslations }}
|
||||||
<li id="i18n-switch">
|
<li id="i18n-switch">
|
||||||
{{ partial "helper/icon" "language" }}
|
{{ partial "helper/icon" "language" }}
|
||||||
|
@ -87,6 +88,7 @@
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ if (default false .Site.Params.colorScheme.toggle) }}
|
{{ if (default false .Site.Params.colorScheme.toggle) }}
|
||||||
<li id="dark-mode-toggle">
|
<li id="dark-mode-toggle">
|
||||||
|
|
Loading…
Reference in a new issue