summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-05-05 00:35:18 +0800
committerReorx <novoreorx@gmail.com>2022-05-05 00:35:21 +0800
commitcb9776f69945f74d639940fccb2677e40f8e5a04 (patch)
treed7fa9899da49092ecede7e5b5e0e0adfc91c8881
parentc369bd5b3f8750dc24ea21f435e9701fc10ceed3 (diff)
add DisableLanguageSwitch
-rw-r--r--layouts/partials/header.html2
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 := . }}