Fix in case author has no image

This commit is contained in:
John O'Nolan 2014-07-21 19:09:17 +02:00
parent 4bd2ce6740
commit 6659c9514a

View file

@ -13,7 +13,7 @@
<p>{{excerpt words="30"}} <a class="read-more" href="{{url}}">&raquo;</a></p>
</section>
<footer class="post-meta">
<img class="author-thumb" src="{{author.image}}" alt="Author image" nopin="nopin" />
{{#if author.image}}<img class="author-thumb" src="{{author.image}}" alt="Author image" nopin="nopin" />{{/if}}
<a href="{{@blog.url}}/author/{{author.slug}}">{{author.name}}</a>
{{tags prefix=" on "}}
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time>