Language theme fix
This commit is contained in:
parent
bdcf6190fb
commit
08385c21f9
|
@ -3,7 +3,7 @@
|
||||||
<button class="dropdown-trigger navbar__slide-down" aria-label="Select Language Button" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
|
<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) }}
|
{{ partial "svgs/etc/translate.svg" (dict "width" 22 "height" 22) }}
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-content select-theme">
|
<div class="dropdown-content">
|
||||||
{{ $siteLanguages := .Site.Languages }}
|
{{ $siteLanguages := .Site.Languages }}
|
||||||
{{ $pageLang := .Page.Lang }}
|
{{ $pageLang := .Page.Lang }}
|
||||||
{{ range .Page.AllTranslations }}
|
{{ range .Page.AllTranslations }}
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
{{ $selected := false }}
|
{{ $selected := false }}
|
||||||
{{ if eq $pageLang .Lang }}
|
{{ if eq $pageLang .Lang }}
|
||||||
{{ if .LanguageName }}
|
{{ 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 }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if .LanguageName }}
|
{{ if .LanguageName }}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<button class="dropdown-trigger navbar__slide-down navbar-search" aria-label="Search Button" data-ani="{{ $.Site.Params.enableUiAnimation | default "true" }}">
|
<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) }}
|
{{ partial "svgs/etc/search.svg" (dict "width" 22 "height" 22) }}
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-content select-theme">
|
<div class="dropdown-content">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue