Skip to content

Commit

Permalink
add alt attributes to <img> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jan 18, 2024
1 parent 628037b commit 4970c76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/layouts/paper.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
% block header
<header class="flex">
<div>
<img src="{{ website.asset('liberapay/icon-v2_black-on-yellow.svg') }}" />
<img src="{{ website.asset('liberapay/icon-v2_black-on-yellow.svg') }}" alt="{{ _('Liberapay logo') }}" />
Liberapay
</div>
<div>[email protected]</div>
Expand Down
4 changes: 2 additions & 2 deletions www/about/logos.spt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ title = _("Logos")
) }}</p>

<div class="card text-center">
<p><img src="{{ website.asset('liberapay/icon-v2_black-on-yellow.svg') }}" height=150 /></p>
<p><img src="{{ website.asset('liberapay/icon-v2_black-on-yellow.svg') }}" height=150 alt="{{ _('Liberapay logo, black-on-yellow') }}" /></p>
<p><a href="/assets/liberapay/icon-v2_black-on-yellow.svg?save_as=liberapay_logo_black-on-yellow.svg">
{{ fontawesome('download') }} {{ _("Download the black-on-yellow SVG") }}
</a></p>
Expand All @@ -57,7 +57,7 @@ title = _("Logos")
</div>

<div class="card text-center">
<p><img src="{{ website.asset('liberapay/icon-v2_black.svg') }}" height=150 /></p>
<p><img src="{{ website.asset('liberapay/icon-v2_black.svg') }}" height=150 alt="{{ _('Liberapay logo, black') }}" /></p>
<p><a href="/assets/liberapay/icon-v2_black.svg?save_as=liberapay_logo_black.svg">
{{ fontawesome('download') }} {{ _("Download the black SVG") }}
</a></p>
Expand Down
2 changes: 1 addition & 1 deletion www/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ recent = website.db.one("""
% block content

<div class="jumbotron section">
<p><img src="{{ website.asset('liberapay/icon-v2_black-on-yellow.svg') }}" height=100 width=100 /></p>
<p><img src="{{ website.asset('liberapay/icon-v2_black-on-yellow.svg') }}" height=100 width=100 alt="{{ _('Liberapay logo') }}" /></p>
<p>{{ _("Liberapay is a recurrent donations platform.") }}</p>
<p>{{ _("We help you fund the creators and projects you appreciate.") }}</p>
</div>
Expand Down

0 comments on commit 4970c76

Please sign in to comment.