From 26de844a1981ff5abfc1a57893cedb2eb4b7a33e Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Wed, 18 Aug 2021 11:12:50 +0200 Subject: #343, #165: Move lang selector to left menu --- layouts/partials/docs/brand.html | 2 +- layouts/partials/docs/footer.html | 4 +--- layouts/partials/docs/languages.html | 38 +++++++++++++++++++----------------- layouts/partials/docs/menu.html | 3 +++ 4 files changed, 25 insertions(+), 22 deletions(-) (limited to 'layouts/partials/docs') diff --git a/layouts/partials/docs/brand.html b/layouts/partials/docs/brand.html index 08ec797..f9accb4 100644 --- a/layouts/partials/docs/brand.html +++ b/layouts/partials/docs/brand.html @@ -1,5 +1,5 @@

- + {{- with .Site.Params.BookLogo -}} Logo {{- end -}} diff --git a/layouts/partials/docs/footer.html b/layouts/partials/docs/footer.html index 6e1a694..0cb877a 100644 --- a/layouts/partials/docs/footer.html +++ b/layouts/partials/docs/footer.html @@ -1,7 +1,4 @@ {{ $script := resources.Get "clipboard.js" | resources.Minify }} diff --git a/layouts/partials/docs/languages.html b/layouts/partials/docs/languages.html index 4020275..644f6ea 100644 --- a/layouts/partials/docs/languages.html +++ b/layouts/partials/docs/languages.html @@ -2,7 +2,7 @@ {{ $bookTranslatedOnly := default false .Site.Params.BookTranslatedOnly }} {{ $translations := dict }} {{ if (eq $bookTranslatedOnly false ) }} - {{ range .Site.Home.AllTranslations }} + {{ range .Site.Home.Translations }} {{ $translations = merge $translations (dict .Language.Lang .) }} {{ end }} {{ end }} @@ -10,22 +10,24 @@ {{ $translations = merge $translations (dict .Language.Lang .) }} {{ end }} -
-
    -
  • - Languages - {{ $.Site.Language.LanguageName }} -
  • -
- -
+ + + + + diff --git a/layouts/partials/docs/menu.html b/layouts/partials/docs/menu.html index 3a71f42..d7ed940 100644 --- a/layouts/partials/docs/menu.html +++ b/layouts/partials/docs/menu.html @@ -1,6 +1,9 @@