Skip to content

Commit 08c60c9

Browse files
authored
fix: Hide language dropdown button in docs (#368)
Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
1 parent 1c13483 commit 08c60c9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

layouts/partials/scripts.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@
2727
<script src='{{ "/js/prism.js" | relURL }}'></script>
2828
{{ end }}
2929
{{ partial "hooks/body-end.html" . }}
30-
{{ if eq .Site.Params.contentdir "content/zh" }}
31-
<script>
32-
const href = $('.hide_zh_doc_class')
33-
$(href[0]).attr('href', '/docs/');
34-
</script>
35-
{{ end }}
3630

37-
{{ if eq .Site.Params.languagename "English" }}
31+
{{ if eq .Site.Language.Lang "en" }}
3832
<script>
3933
const url = window.location.href;
4034
if (url.indexOf('/docs') !== -1) {

0 commit comments

Comments
 (0)