aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Tingfeng2026-01-14 03:16:48 +0800
committerGitHub2026-01-13 11:16:48 -0800
commit616a42a7453f84aa41a36360dfa95f0f374afe7b (patch)
treec48679f8c6f6c2c753faddf5615d9ca5d5312cdd
parent0e57163ad6ebd61a3dcc4e79d40065c3c0ba229d (diff)
downloadabridge-616a42a7453f84aa41a36360dfa95f0f374afe7b.tar.gz
abridge-616a42a7453f84aa41a36360dfa95f0f374afe7b.tar.bz2
abridge-616a42a7453f84aa41a36360dfa95f0f374afe7b.zip
set alt to empty string if omitted for accessibility. (#232)
-rw-r--r--templates/base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index 9e69e6f..d16854c 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -34,7 +34,7 @@
<big><a href="{{ get_url(path="/", lang=lang) }}{%- if uglyurls %}/index.html{%- endif %}" title="{{config.title}}">
{%- if config.extra.logo.file -%}
- <img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}"{%- if config.extra.logo.alt %} alt="{{ config.extra.logo.alt | safe }}"{%- endif %}{%- if config.extra.logo.width %} width="{{ config.extra.logo.width | safe }}"{%- endif %}{%- if config.extra.logo.height %} height="{{ config.extra.logo.height | safe }}"{%- endif %} />
+ <img src="{{ config.base_url | safe }}/{{ config.extra.logo.file | safe }}"{%- if config.extra.logo.alt %} alt="{{ config.extra.logo.alt | safe }}"{%- else %} alt=""{%- endif %}{%- if config.extra.logo.width %} width="{{ config.extra.logo.width | safe }}"{%- endif %}{%- if config.extra.logo.height %} height="{{ config.extra.logo.height | safe }}"{%- endif %} />
{%- endif -%}
{%- if config.extra.logo.text -%}{{ config.extra.logo.text | safe }}{%- endif -%}
</a></big>