summaryrefslogtreecommitdiff
path: root/layouts/partials/select-language.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/select-language.html')
-rw-r--r--layouts/partials/select-language.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/partials/select-language.html b/layouts/partials/select-language.html
index 752b605..6efcc61 100644
--- a/layouts/partials/select-language.html
+++ b/layouts/partials/select-language.html
@@ -9,15 +9,15 @@ These variables - together with the explicit naming of `.` context variables in
{{- if gt (len site.Languages) 1 }}
{{- $activeLang := .Lang }}
{{- $allTranslationsForPage := .Translations }}
- <div class="language-select" style="background-color: yellow;">
- <ul>
+ <div class="language-select">
+ <ul class="language-select__language-list">
{{- range site.Languages }}
{{- $currLangSlice := . }}
{{- if ne $currLangSlice.Lang $activeLang }}
{{- $targetPage := index (where site.Home.Translations "Lang" $currLangSlice.Lang) 0 }}
{{- $translatedPage := index (where $allTranslationsForPage "Lang" $currLangSlice.Lang) 0 }}
{{- if $translatedPage }}{{- $targetPage = $translatedPage }}{{- end }}
- <li>
+ <li class="language-select__language-item">
<a
href="{{ $targetPage.RelPermalink }}"
hreflang="{{ $targetPage.Lang }}"
@@ -26,7 +26,6 @@ These variables - together with the explicit naming of `.` context variables in
<img
src="/flags/{{ $targetPage.Lang }}.svg"
class="icon icon-flag"
- style="max-height: 32px"
alt="{{ $targetPage.LinkTitle }} ({{ or $targetPage.Language.LanguageName $targetPage.Lang }})"
aria-hidden="true"
/>