fix: remove translations variables
Some checks failed
Blog Deployment / Check-Rebuild (push) Successful in 4s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 9s
Blog Deployment / Test-Staging (push) Failing after 2s
Blog Deployment / Merge (push) Has been skipped
Blog Deployment / Deploy-Production (push) Has been skipped
Blog Deployment / Test-Production (push) Has been skipped
Blog Deployment / Clean (push) Has been skipped
Some checks failed
Blog Deployment / Check-Rebuild (push) Successful in 4s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 9s
Blog Deployment / Test-Staging (push) Failing after 2s
Blog Deployment / Merge (push) Has been skipped
Blog Deployment / Deploy-Production (push) Has been skipped
Blog Deployment / Test-Production (push) Has been skipped
Blog Deployment / Clean (push) Has been skipped
This commit is contained in:
@@ -76,22 +76,8 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
<li class="menu-bottom-section">
|
<li class="menu-bottom-section">
|
||||||
<ol class="menu">
|
<ol class="menu">
|
||||||
{{- $currentLanguageCode := .Language.Lang -}}
|
|
||||||
{{ if ( compare.Gt .Site.Home.AllTranslations.Len 1 ) }}
|
|
||||||
{{ with .Site.Home.AllTranslations }}
|
|
||||||
<li id="i18n-switch">
|
|
||||||
{{ partial "helper/icon" "language" }}
|
|
||||||
<select name="language" title="language" onchange="window.location.href = this.selectedOptions[0].value">
|
|
||||||
{{ range . }}
|
|
||||||
<option value="{{ .Permalink }}" {{ if eq .Language.Lang $currentLanguageCode }}selected{{ end }}>{{ .Language.LanguageName }}</option>
|
|
||||||
{{ end }}
|
|
||||||
</select>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{- $currentLang := .Language.Lang -}}
|
{{- $currentLang := .Language.Lang -}}
|
||||||
{{- range $translations }}
|
{{- range .Site.Home.AllTranslations }}
|
||||||
{{- if ne .Language.Lang $currentLang }}
|
{{- if ne .Language.Lang $currentLang }}
|
||||||
<li id="i18n-switch">
|
<li id="i18n-switch">
|
||||||
<a href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
|
<a href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
|
||||||
@@ -101,7 +87,6 @@
|
|||||||
</li>
|
</li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|
||||||
{{ if (default false .Site.Params.colorScheme.toggle) }}
|
{{ if (default false .Site.Params.colorScheme.toggle) }}
|
||||||
<li id="dark-mode-toggle">
|
<li id="dark-mode-toggle">
|
||||||
{{ partial "helper/icon" "toggle-left" }}
|
{{ partial "helper/icon" "toggle-left" }}
|
||||||
|
Reference in New Issue
Block a user