fix(theme): update the markup and styling of translastions

This commit is contained in:
Bruno Carlin 2025-07-06 14:22:12 +02:00
parent ceb1d7ae03
commit c321629dd2
Signed by: bcarlin
GPG key ID: 8E254EA0FFEB9B6D
4 changed files with 7 additions and 3 deletions

View file

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