Add styling to active language in language switcher
2 files changed, 6 insertions(+), 1 deletion(-)
M templates/language_switcher.html → templates/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 %}
M templates/style.css.html → templates/style.css.html
@@ -47,6 +47,11 @@ nav a { margin-right: 10px; } + nav active { + font-weight: bold; + margin-right: 10px; + } + textarea { width: 100%; font-size: 1rem;