diff options
| author | Wu Tingfeng | 2026-01-14 03:16:48 +0800 |
|---|---|---|
| committer | GitHub | 2026-01-13 11:16:48 -0800 |
| commit | 616a42a7453f84aa41a36360dfa95f0f374afe7b (patch) | |
| tree | c48679f8c6f6c2c753faddf5615d9ca5d5312cdd | |
| parent | 0e57163ad6ebd61a3dcc4e79d40065c3c0ba229d (diff) | |
| download | abridge-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.html | 2 |
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> |
