From cb9776f69945f74d639940fccb2677e40f8e5a04 Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 5 May 2022 00:35:18 +0800 Subject: [PATCH] add DisableLanguageSwitch --- layouts/partials/header.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 88872c4..e2d8630 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -94,6 +94,7 @@ {{- 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}} {{- end }} + {{- end }} {{- $currentPage := . }}