sort post languages

This commit is contained in:
Dmitry Kolosov 2023-09-03 11:42:14 +02:00
parent d214b9e410
commit 165ec4ca10

View File

@ -2,7 +2,7 @@
{{ $pageLang := .Page.Lang}}
<span>
<ul class="post-translations">
{{ range .AllTranslations }}
{{ range (sort .AllTranslations ".Lang" "asc" ) }}
{{ if eq .Lang $pageLang }}
<li>
{{ upper .Lang }}