Add author image to post author-box, if available

This commit is contained in:
John O'Nolan
2014-07-21 20:19:49 +02:00
parent 91ca337fe6
commit f6ee7d89f9
2 changed files with 31 additions and 13 deletions

View File

@ -21,8 +21,11 @@
</section>
<footer class="post-footer">
<a class="subscribe icon-feed" href="{{@blog.url}}/rss/"><span class="tooltip">Subscribe!</span></a>
{{#if author.image}}
<figure class="author-image">
<A class="img" href="{{@blog.url}}/author/{{author.slug}}" style="background-image: url({{author.image}})"><span class="hidden">{{author.name}}'s Picture</span></a>
</figure>
{{/if}}
<section class="author">
<h4><a href="{{@blog.url}}/author/{{author.slug}}">{{author.name}}</a></h4>
<p>{{author.bio}}</p>