Add fallback text if user has no entered a bio

This commit is contained in:
John O'Nolan 2014-07-22 13:31:58 +02:00
parent 00eca81a1e
commit e9eca20883

View File

@ -33,7 +33,11 @@
{{/if}}
<section class="author">
<h4><a href="{{@blog.url}}/author/{{author.slug}}">{{author.name}}</a></h4>
<p>{{author.bio}}</p>
{{#if author.bio}}
<p>{{author.bio}}</p>
{{else}}
<p>Read <a href="{{@blog.url}}/author/{{author.slug}}">more posts</a> by this author.</p>
{{/if}}
<div class="author-meta">
{{#if author.location}}<span class="author-location"><i class="icon-location"></i> {{author.location}}</span>{{/if}}
{{#if author.website}}<span class="author-link"><i class="icon-link"></i> <a href="{{author.website}}">{{author.website}}</a></span>{{/if}}