From 05c3b8fac9bec7cf54fed20d93fac52e1e97ad97 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Sun, 10 Nov 2019 00:23:06 +0100 Subject: Add language switch at bottom of page --- layouts/partials/docs/languages.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 layouts/partials/docs/languages.html (limited to 'layouts/partials/docs/languages.html') diff --git a/layouts/partials/docs/languages.html b/layouts/partials/docs/languages.html new file mode 100644 index 0000000..d905327 --- /dev/null +++ b/layouts/partials/docs/languages.html @@ -0,0 +1,32 @@ +{{ if .Site.IsMultiLingual }} + +{{ $langs := dict }} +{{ range .Site.Home.AllTranslations }} + {{ $langs = merge $langs (dict .Language.Lang .) }} +{{ end }} +{{ range .Translations }} + {{ $langs = merge $langs (dict .Language.Lang .) }} +{{ end }} + +
+ + + + + +
+{{ end }} -- cgit v1.2.3