Skip to content

Commit

Permalink
add slightly-descriptive alt text to avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Mar 16, 2024
1 parent 6f5f041 commit fa50fd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _includes/avatar.html
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
<img height="{{include.height}}" width="{{include.width}}" class="{{include.class}}" src="{% if post.avatar contains '://' %}{% elsif post.avatar %}{{ site.baseurl }}/hackergotchi/{% else %}{{ site.baseurl }}/hackergotchi/default.png{% endif %}{{ post.avatar }}"/>
<img height="{{include.height}}"
width="{{include.width}}"
class="{{include.class}}"
alt="the logo of {{post.author}}"
src="{% if post.avatar contains '://' %}{% elsif post.avatar %}{{ site.baseurl }}/hackergotchi/{% else %}{{ site.baseurl }}/hackergotchi/default.png{% endif %}{{ post.avatar }}"/>

0 comments on commit fa50fd6

Please sign in to comment.