diff --git a/config.toml b/config.toml index d7d79ad..202072d 100644 --- a/config.toml +++ b/config.toml @@ -200,6 +200,8 @@ fediverse_creator = { handle = "zloy_linux", domain = "zlinux.ru" } show_previous_next_article_links = true invert_previous_next_article_links = true +# For multilingual sites: show current language code on the language switcher. +show_selected_language_code_in_language_switcher = false # Enable iine like buttons on all posts: https://iine.to/ # Can be set at page or section levels, following the hierarchy: page > section > config. See: https://welpo.github.io/tabi/blog/mastering-tabi-settings/#settings-hierarchy diff --git a/themes/tabi/sass/parts/_header.scss b/themes/tabi/sass/parts/_header.scss index ec00420..a16bcef 100644 --- a/themes/tabi/sass/parts/_header.scss +++ b/themes/tabi/sass/parts/_header.scss @@ -126,6 +126,28 @@ header { } } + .language-switcher-icon-with-code { + margin-inline-end: 0.3rem; + width: 0.7rem; + height: 0.7rem; + } +} + +.language-switcher-icon-code { + position: absolute; + top: -0.15rem; + z-index: 10; + inset-inline-start: 0.7rem; + width: 100%; + height: 100%; + color: var(--text-color); + font-size: 0.5rem; + text-transform: uppercase; + + &:hover { + color: var(--meta-color); + } + .dropdown { display: inline-block; position: relative; diff --git a/themes/tabi/templates/partials/language_switcher.html b/themes/tabi/templates/partials/language_switcher.html index 83cf61f..212bb98 100644 --- a/themes/tabi/templates/partials/language_switcher.html +++ b/themes/tabi/templates/partials/language_switcher.html @@ -1,7 +1,12 @@