diff options
author | Alan Pearce | 2024-05-29 16:01:03 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-29 16:01:03 +0200 |
commit | 99423f57f79499f13d021970c1efb4529072006b (patch) | |
tree | aab3b0280ba6eabddb8ce8589538f9efb080a271 /templates/language_switcher.html | |
parent | dea01a9d2d2853af740aff8d11f573a70e7c4962 (diff) | |
download | zola-bearblog-99423f57f79499f13d021970c1efb4529072006b.tar.lz zola-bearblog-99423f57f79499f13d021970c1efb4529072006b.tar.zst zola-bearblog-99423f57f79499f13d021970c1efb4529072006b.zip |
improve whitespace generation in output files
Diffstat (limited to 'templates/language_switcher.html')
-rw-r--r-- | templates/language_switcher.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/language_switcher.html b/templates/language_switcher.html index 512b409..04ce9a5 100644 --- a/templates/language_switcher.html +++ b/templates/language_switcher.html @@ -1,6 +1,6 @@ -{% if config.extra.language_switcher %} +{%- if config.extra.language_switcher %} <nav class="lang"> - {%- set language_agnostic_path = current_path | default(value="/") | replace(from='/' ~ lang ~ '/', to = '/') | trim_start_matches(pat = '/') -%} + {%- 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 %} <active>{{ tr.name }}</active> @@ -9,4 +9,4 @@ {%- endif %} {%- endfor %} </nav> -{% endif %} +{%- endif -%} |