diff options
| author | Jieiku | 2023-05-22 23:13:34 -0700 |
|---|---|---|
| committer | Jieiku | 2023-05-22 23:13:34 -0700 |
| commit | 3ca36cc469e838cee7d3fdcdc6ff39b35313a293 (patch) | |
| tree | 440dce6c098e6a875d2805982a53b7ccc7ddedee /templates/base.html | |
| parent | f81a42045e29cc396af78b5d87ead874ba26fa18 (diff) | |
| download | abridge-3ca36cc469e838cee7d3fdcdc6ff39b35313a293.tar.gz abridge-3ca36cc469e838cee7d3fdcdc6ff39b35313a293.tar.bz2 abridge-3ca36cc469e838cee7d3fdcdc6ff39b35313a293.zip | |
js resilience
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html index c29fe6e..cb8d73f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -44,7 +44,9 @@ {%- if config.extra.logo.text -%}{{ config.extra.logo.text | safe }}{%- endif -%} </a></h1> {%- elif config.extra.textlogo -%} - <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if config.extra.uglyurls %}/index.html{%- endif %}">{{ config.extra.textlogo | safe }}</a></h1> + <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if config.extra.uglyurls -%} + {%- if lang == config.default_language -%}/{%- endif -%} + index.html{%- endif -%}">{{ config.extra.textlogo | safe }}</a></h1> {%- elif config.title -%} <h1><a href="{{ get_url(path="/", lang=lang) }}{%- if config.extra.uglyurls %}/index.html{%- endif %}">{{ config.title | safe }}</a></h1> {%- endif -%} |
