Merge pull request #18 from CSIRT-MU/language-selector
allow language selector to be disabled
This commit is contained in:
commit
c2341e8e9b
2 changed files with 3 additions and 0 deletions
|
@ -8,6 +8,7 @@ secondaryColor = "#f9f9f9"
|
||||||
textColor = "#636363"
|
textColor = "#636363"
|
||||||
textColorDark = "#242738"
|
textColorDark = "#242738"
|
||||||
whiteColor = "#ffffff"
|
whiteColor = "#ffffff"
|
||||||
|
disableLanguageSwitchingButton = false
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
<!-- Language List -->
|
<!-- Language List -->
|
||||||
|
{{- if and .Site.IsMultiLingual (not .Site.Params.DisableLanguageSwitchingButton)}}
|
||||||
<select id="select-language" onchange="location = this.value;">
|
<select id="select-language" onchange="location = this.value;">
|
||||||
{{ $siteLanguages := .Site.Languages}}
|
{{ $siteLanguages := .Site.Languages}}
|
||||||
{{ $pageLang := .Page.Lang}}
|
{{ $pageLang := .Page.Lang}}
|
||||||
|
@ -61,5 +62,6 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</select>
|
</select>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
Loading…
Reference in a new issue