Add alt description to avatar image

Use author's name as `alt` description  in comment avatar image.
This commit is contained in:
Lars Olesen 2017-09-20 21:56:08 +02:00 committed by Michael Rose
parent e194bc0c7e
commit d81af1f103

View file

@ -1,6 +1,6 @@
<article id="comment{{ include.index }}" class="js-comment comment" itemprop="comment" itemscope itemtype="http://schema.org/Comment"> <article id="comment{{ include.index }}" class="js-comment comment" itemprop="comment" itemscope itemtype="http://schema.org/Comment">
<div class="comment__avatar-wrapper"> <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>
<div class="comment__content-wrapper"> <div class="comment__content-wrapper">
<h3 class="comment__author" itemprop="author" itemscope itemtype="http://schema.org/Person"> <h3 class="comment__author" itemprop="author" itemscope itemtype="http://schema.org/Person">
@ -19,4 +19,4 @@
</p> </p>
<div itemprop="text">{{ include.message | markdownify }}</div> <div itemprop="text">{{ include.message | markdownify }}</div>
</div> </div>
</article> </article>