We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c13483 commit 08c60c9Copy full SHA for 08c60c9
layouts/partials/scripts.html
@@ -27,14 +27,8 @@
27
<script src='{{ "/js/prism.js" | relURL }}'></script>
28
{{ end }}
29
{{ 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 }}
36
37
-{{ if eq .Site.Params.languagename "English" }}
+{{ if eq .Site.Language.Lang "en" }}
38
<script>
39
const url = window.location.href;
40
if (url.indexOf('/docs') !== -1) {
0 commit comments