mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
a11y: add lang attribute for language selector #307
This commit is contained in:
parent
5f34d107d0
commit
da25f7d13f
1 changed files with 2 additions and 2 deletions
|
@ -68,9 +68,9 @@
|
||||||
{{- range $siteLanguages }}
|
{{- range $siteLanguages }}
|
||||||
{{- if eq $translation.Lang .Lang }}
|
{{- if eq $translation.Lang .Lang }}
|
||||||
{{- if eq $pageLang .Lang }}
|
{{- if eq $pageLang .Lang }}
|
||||||
<option id="{{ $translation.Language }}" value="{{ $translation.RelPermalink }}" selected>{{ .LanguageName }}</option>
|
<option lang="{{ $translation.Lang }}" id="{{ $translation.Lang }}" value="{{ $translation.RelPermalink }}" selected>{{ .LanguageName }}</option>
|
||||||
{{- else }}
|
{{- else }}
|
||||||
<option id="{{ $translation.Language }}" value="{{ $translation.RelPermalink }}">{{ .LanguageName }}</option>
|
<option lang="{{ $translation.Lang }}" id="{{ $translation.Lang }}" value="{{ $translation.RelPermalink }}">{{ .LanguageName }}</option>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue