commit 3e154caacfc6317aa52e0d536a7a4d366d53863d
parent 7fed5355ba2e87e35864da8107d9f66b27516834
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sun, 19 Apr 2020 23:00:43 -0500
Sort languages by their names
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layouts/partials/language.html b/layouts/partials/language.html
@@ -1,3 +1,3 @@
-{{- range .Translations -}}
+{{- range (sort .Translations ".Language.LanguageName") -}}
| <a href="{{ .Permalink | relURL }}">{{ .Language.LanguageName }}</a>
{{- end -}}