test: add lang toggle
Some checks failed
Blog Test / Check-Rebuild (push) Successful in 7s
Blog Test / Build (push) Successful in 10s
Blog Test / Deploy-Test (push) Successful in 11s
Blog Test / Test (push) Failing after 3s

This commit is contained in:
2026-04-03 07:54:44 +00:00
parent 1e2fefddb9
commit c3aadcee8e

View File

@@ -55,7 +55,16 @@
</a>
</li>
{{ end }}
{{- $currentLang := $page.Language.Lang -}}
{{- range $page.AllTranslations }}
{{- if ne .Language.Lang $currentLang }}
<li class="lang-toggle-icon">
<a href="{{ .Permalink }}" title="Switch to {{ .Language.Lang }}">
{{ partial "helper/icon" (printf "toggle_to_%s" .Language.Lang) }}
</a>
</li>
{{- end }}
{{- end }}
</ol>
{{- end -}}