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