diff options
| author | Reorx <novoreorx@gmail.com> | 2022-05-05 00:35:18 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-05-05 00:35:21 +0800 |
| commit | cb9776f69945f74d639940fccb2677e40f8e5a04 (patch) | |
| tree | d7fa9899da49092ecede7e5b5e0e0adfc91c8881 | |
| parent | c369bd5b3f8750dc24ea21f435e9701fc10ceed3 (diff) | |
add DisableLanguageSwitch
| -rw-r--r-- | layouts/partials/header.html | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ </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 := . }} |
