add DisableLanguageSwitch

This commit is contained in:
Reorx 2022-05-05 00:35:18 +08:00
parent c369bd5b3f
commit cb9776f699
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,7 @@
</button>
{{- end }}
{{- if not site.Params.DisableLanguageSwitch }}
{{- $lang := .Lang}}
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
{{- with site.Home.AllTranslations }}
@ -115,6 +116,7 @@
{{- end}}
</ul>
{{- end }}
{{- end }}
</span>
</div>
{{- $currentPage := . }}