diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-04-03 17:42:48 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-04-03 17:42:48 +0200 |
commit | 1eeabcad67b043c5f6ea181b0b06a6aa97d16ee4 (patch) | |
tree | ce001ff5904398a772d7dd5d8cc350ceccb09efe | |
parent | 6e146b1bf1ee860e191440e3f6c8f96f390f8d0c (diff) |
#187, Use .Permalink for lang switch, align icons
-rw-r--r-- | layouts/partials/docs/languages.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/partials/docs/languages.html b/layouts/partials/docs/languages.html index 497e827..14e0e2c 100644 --- a/layouts/partials/docs/languages.html +++ b/layouts/partials/docs/languages.html @@ -9,7 +9,7 @@ <div class="book-languages" tabindex="0" aria-haspopup="true"> <ul> - <li class="flex"> + <li class="flex align-center"> <img src="{{ "svg/translate.svg" | relURL }}" class="book-icon" alt="Languages" /> {{ $.Site.Language.LanguageName }} </li> @@ -18,12 +18,11 @@ <ul class="book-languages-list"> {{ range .Site.Languages }}{{ with index $translations .Lang }} <li class="{{ if (eq $.Site.Language .Language) }}active{{ end }}"> - <a href="{{ .RelPermalink }}" class="flex"> + <a href="{{ .Permalink }}" class="flex align-center"> <img src="{{ "svg/translate.svg" | relURL }}" class="book-icon" alt="Languages" /> {{ .Language.LanguageName }} </a> </li> {{ end }}{{ end }} </ul> - </div> |