Language theme fix

This commit is contained in:
Álvaro Salcedo García 2020-10-26 00:17:43 +01:00
parent bdcf6190fb
commit 08385c21f9
No known key found for this signature in database
GPG Key ID: ECF2481638A27C7B
2 changed files with 4 additions and 4 deletions

View File

@ -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 }}

View File

@ -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>