all repos — zola-bearblog @ 99423f57f79499f13d021970c1efb4529072006b

Port of bear blog theme to zola

improve whitespace generation in output files

Alan Pearce
commit

99423f57f79499f13d021970c1efb4529072006b

parent

dea01a9d2d2853af740aff8d11f573a70e7c4962

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M templates/language_switcher.htmltemplates/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 @@ <a href="{{ get_url(path=language_agnostic_path, lang=tr.code) ~ "/" }}" hreflang="{{ tr.code }}">{{ tr.name }}</a>
{%- endif %} {%- endfor %} </nav> -{% endif %} +{%- endif -%}