Merge pull request #336 from alvr/language_theme_fix
Language selector change theme fix
This commit is contained in:
commit
e09bbc6d4e
|
@ -3,7 +3,7 @@
|
|||
<button class="dropdown-trigger navbar__slide-down" aria-label="Select Language Button" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
|
||||
{{ partial "svgs/etc/translate.svg" (dict "width" 22 "height" 22) }}
|
||||
</button>
|
||||
<div class="dropdown-content select-theme">
|
||||
<div class="dropdown-content">
|
||||
{{ $siteLanguages := .Site.Languages }}
|
||||
{{ $pageLang := .Page.Lang }}
|
||||
{{ range .Page.AllTranslations }}
|
||||
|
@ -13,11 +13,11 @@
|
|||
{{ $selected := false }}
|
||||
{{ if eq $pageLang .Lang }}
|
||||
{{ if .LanguageName }}
|
||||
<a href="{{ $translation.Permalink }}" data-lang="{{ .Lang }}" class="dropdown-item select-theme__item is-active">{{ .LanguageName }}</a>
|
||||
<a href="{{ $translation.Permalink }}" data-lang="{{ .Lang }}" class="dropdown-item is-active">{{ .LanguageName }}</a>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ if .LanguageName }}
|
||||
<a href="{{ $translation.Permalink }}" data-lang="{{ .Lang }}" class="dropdown-item ">{{ .LanguageName }}</a>
|
||||
<a href="{{ $translation.Permalink }}" data-lang="{{ .Lang }}" class="dropdown-item">{{ .LanguageName }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<button class="dropdown-trigger navbar__slide-down navbar-search" aria-label="Search Button" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
|
||||
{{ partial "svgs/etc/search.svg" (dict "width" 22 "height" 22) }}
|
||||
</button>
|
||||
<div class="dropdown-content select-theme">
|
||||
<div class="dropdown-content">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in New Issue