Skip to content

Commit

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

0 comments on commit 71690fb

Please sign in to comment.