fix(theme): update the markup and styling of translastions
This commit is contained in:
parent
ceb1d7ae03
commit
c321629dd2
4 changed files with 7 additions and 3 deletions
|
@ -38,12 +38,12 @@
|
|||
<main>
|
||||
{{- if .IsTranslated }}
|
||||
{{- range .Translations }}
|
||||
<div class="translations">
|
||||
<aside class="translations" aria-label="{{ T `translations` }}">
|
||||
{{ T `also_available_in` }}
|
||||
<a hreflang="{{ .Language.LanguageCode }}" href="{{ .RelPermalink }}" title="{{ .Language.LanguageName }}">
|
||||
{{ if eq .Language.Lang "en" }}🇬🇧{{ else if eq .Language.Lang "fr" }}🇫🇷{{ else }}{{ .Language.LanguageName }}{{ end }}
|
||||
</a>
|
||||
</div>
|
||||
</aside>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue