diff options
author | Oleksii Dobrovolskyi | 2024-03-17 14:01:05 +0200 |
---|---|---|
committer | Oleksii Dobrovolskyi | 2024-03-17 14:01:05 +0200 |
commit | f602b789b4552de0c1f7d726cbe3117c3ba278ca (patch) | |
tree | dd990bb0c8f6e3133e235bd7208b0a618e1bce93 /templates/language_switcher.html | |
parent | f925498eb727bcdac7c3dafc65365cff6bc4d577 (diff) | |
download | zola-bearblog-f602b789b4552de0c1f7d726cbe3117c3ba278ca.tar.lz zola-bearblog-f602b789b4552de0c1f7d726cbe3117c3ba278ca.tar.zst zola-bearblog-f602b789b4552de0c1f7d726cbe3117c3ba278ca.zip |
Add styling to active language in language switcher
Diffstat (limited to 'templates/language_switcher.html')
-rw-r--r-- | templates/language_switcher.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/language_switcher.html b/templates/language_switcher.html index 3968c73..512b409 100644 --- a/templates/language_switcher.html +++ b/templates/language_switcher.html @@ -3,7 +3,7 @@ {%- set language_agnostic_path = current_path | default(value="/") | replace(from='/' ~ lang ~ '/', to = '/') | trim_start_matches(pat = '/') -%} {%- for tr in config.extra.translations %} {%- if tr.code == lang %} - <strong>{{ tr.name }}</strong> + <active>{{ tr.name }}</active> {%- else %} <a href="{{ get_url(path=language_agnostic_path, lang=tr.code) ~ "/" }}" hreflang="{{ tr.code }}">{{ tr.name }}</a> {%- endif %} |