all repos — zola-bearblog @ f602b789b4552de0c1f7d726cbe3117c3ba278ca

Port of bear blog theme to zola

Add styling to active language in language switcher

commit

f602b789b4552de0c1f7d726cbe3117c3ba278ca

parent

f925498eb727bcdac7c3dafc65365cff6bc4d577

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M templates/language_switcher.htmltemplates/language_switcher.html
@@ -3,7 +3,7 @@ <nav class="lang">
{%- 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 %}