make post description the featured image alt text

This commit is contained in:
Ayo 2018-03-30 02:39:38 +08:00
parent b84b63d9c2
commit cdd7213a34

View file

@ -20,7 +20,7 @@ layout: default
<a class="post-link post-title" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a> <a class="post-link post-title" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
</h3> </h3>
<div class="float-left post-excerpt"> <div class="float-left post-excerpt">
<img class="float-right post-thumb" alt="{{ post.title | escape }}" src="../assets/images/{{ post.image }}" /> <img class="float-right post-thumb" alt="{{ post.description | escape }}" src="../assets/images/{{ post.image }}" />
{{ post.excerpt }} {{ post.excerpt }}
</div> </div>
<div class="clear-both"></div> <div class="clear-both"></div>