Update header.html

Add `site.Params.disableLangToggle` to disable language switch toggle if set to true.
This commit is contained in:
jamesnulliu 2024-11-21 16:03:56 +08:00 committed by GitHub
parent 3e53621007
commit fe7fddaa30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,6 +96,7 @@
</button>
{{- end }}
{{- if (not site.Params.disableLangToggle) }}
{{- $lang := .Lang}}
{{- $separator := or $label_text (not site.Params.disableThemeToggle)}}
{{- with site.Home.Translations }}
@ -117,6 +118,7 @@
{{- end}}
</ul>
{{- end }}
{{- end }}
</div>
</div>
{{- $currentPage := . }}