Skip to content

Commit

Permalink
dukedpsun commit:保留中文版
Browse files Browse the repository at this point in the history
  • Loading branch information
dukedpsun committed Sep 25, 2023
1 parent 5a21f25 commit 75bff26
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
5 changes: 0 additions & 5 deletions hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
"link",
"meta",
"nav",
"option",
"p",
"pre",
"script",
"section",
"select",
"span",
"strong",
"table",
Expand Down Expand Up @@ -230,7 +228,6 @@
"6golang程序开发",
"blog",
"body",
"cn",
"content",
"create-cloud-native-agents-and-extensions-for-llm",
"cta",
Expand All @@ -239,15 +236,13 @@
"dapr-helps-modernize-applications",
"dapr-助力应用现代化",
"dependence",
"en",
"event",
"feature",
"footer",
"navigation",
"news",
"opentenbase-source-code-compilation-and-installation",
"opentenbase源码编译安装",
"select-language",
"service",
"services",
"system-requirements",
Expand Down
40 changes: 20 additions & 20 deletions themes/meghna-hugo/layouts/partials/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,26 @@
{{ end }}
</ul>
<!-- Language List -->
{{- if site.IsMultiLingual }}
<select id="select-language" onchange="location = this.value;">
{{ $siteLanguages := site.Languages}}
{{ $pageLang := .Page.Lang}}
{{ range .Page.AllTranslations }}
{{ $translation := .}}
{{ range $siteLanguages }}
{{ if eq $translation.Lang .Lang }}
{{ $selected := false }}
{{ if eq $pageLang .Lang}}
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}" selected>{{ .LanguageName }}
</option>
{{ else }}
<option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}">{{ .LanguageName }}</option>
{{ end }}
{{ end }}
{{ end }}
{{ end }}
</select>
{{ end }}
<!-- {{- if site.IsMultiLingual }}-->
<!-- <select id="select-language" onchange="location = this.value;">-->
<!-- {{ $siteLanguages := site.Languages}}-->
<!-- {{ $pageLang := .Page.Lang}}-->
<!-- {{ range .Page.AllTranslations }}-->
<!-- {{ $translation := .}}-->
<!-- {{ range $siteLanguages }}-->
<!-- {{ if eq $translation.Lang .Lang }}-->
<!-- {{ $selected := false }}-->
<!-- {{ if eq $pageLang .Lang}}-->
<!-- <option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}" selected>{{ .LanguageName }}-->
<!-- </option>-->
<!-- {{ else }}-->
<!-- <option id="{{ $translation.Language }}" value="{{ $translation.Permalink }}">{{ .LanguageName }}</option>-->
<!-- {{ end }}-->
<!-- {{ end }}-->
<!-- {{ end }}-->
<!-- {{ end }}-->
<!-- </select>-->
<!-- {{ end }}-->
</div>
</nav>
</div>
Expand Down

0 comments on commit 75bff26

Please sign in to comment.