From a33bb33f189a565c848819181b1b87e66d020c58 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 10 Feb 2020 22:05:17 +0100 Subject: Make translations list respect weight of languages --- layouts/partials/docs/languages.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'layouts/partials/docs') diff --git a/layouts/partials/docs/languages.html b/layouts/partials/docs/languages.html index 63404a9..497e827 100644 --- a/layouts/partials/docs/languages.html +++ b/layouts/partials/docs/languages.html @@ -1,10 +1,10 @@ -{{ $langs := dict }} +{{ $translations := dict }} {{ range .Site.Home.AllTranslations }} - {{ $langs = merge $langs (dict .Language.Lang .) }} + {{ $translations = merge $translations (dict .Language.Lang .) }} {{ end }} {{ range .Translations }} - {{ $langs = merge $langs (dict .Language.Lang .) }} + {{ $translations = merge $translations (dict .Language.Lang .) }} {{ end }}
@@ -16,14 +16,14 @@
-- cgit v1.2.3