Skip to content

Commit

Permalink
Add alt description to avatar image
Browse files Browse the repository at this point in the history
Use author's name as `alt` description  in comment avatar image.
  • Loading branch information
lsolesen authored and mmistakes committed Sep 20, 2017
1 parent e194bc0 commit d81af1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/comment.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<article id="comment{{ include.index }}" class="js-comment comment" itemprop="comment" itemscope itemtype="http://schema.org/Comment">
<div class="comment__avatar-wrapper">
<img class="comment__avatar" src="https://www.gravatar.com/avatar/{{ include.email }}?d=mm&s=80">
<img class="comment__avatar" src="https://www.gravatar.com/avatar/{{ include.email }}?d=mm&s=80" alt="{{ include.name }}">
</div>
<div class="comment__content-wrapper">
<h3 class="comment__author" itemprop="author" itemscope itemtype="http://schema.org/Person">
Expand All @@ -19,4 +19,4 @@ <h3 class="comment__author" itemprop="author" itemscope itemtype="http://schema.
</p>
<div itemprop="text">{{ include.message | markdownify }}</div>
</div>
</article>
</article>

0 comments on commit d81af1f

Please sign in to comment.