diff --git a/assets/scss/_custom.scss b/assets/scss/_custom.scss index 202c50393c..1921e19067 100644 --- a/assets/scss/_custom.scss +++ b/assets/scss/_custom.scss @@ -101,18 +101,6 @@ section { left: 0; background: #fff; } - - .dropdown-menu { - left: -80px; - } - - &.dropdown:hover { - color: $medium-grey; - - .dropdown-menu { - display: block; - } - } } } diff --git a/layouts/partials/navbar-lang-selector.html b/layouts/partials/navbar-lang-selector.html new file mode 100644 index 0000000000..7459c621c3 --- /dev/null +++ b/layouts/partials/navbar-lang-selector.html @@ -0,0 +1,10 @@ +{{/* Link directly to documentation etc., if possible. */}} +{{ $langPage := cond (gt (len .Translations) 0) . .Site.Home }} + + {{ $langPage.Language.LanguageName }} + +
\ No newline at end of file diff --git a/layouts/partials/navbar-version-selector.html b/layouts/partials/navbar-version-selector.html index dfded2b553..5a3f03e126 100644 --- a/layouts/partials/navbar-version-selector.html +++ b/layouts/partials/navbar-version-selector.html @@ -1,8 +1,8 @@ - {{ T "version_menu" }} + {{ .Site.Params.version_menu }} - \ No newline at end of file