Add fallback text if user has no entered a bio
This commit is contained in:
parent
00eca81a1e
commit
e9eca20883
6
post.hbs
6
post.hbs
|
@ -33,7 +33,11 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<section class="author">
|
<section class="author">
|
||||||
<h4><a href="{{@blog.url}}/author/{{author.slug}}">{{author.name}}</a></h4>
|
<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">
|
<div class="author-meta">
|
||||||
{{#if author.location}}<span class="author-location"><i class="icon-location"></i> {{author.location}}</span>{{/if}}
|
{{#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}}
|
{{#if author.website}}<span class="author-link"><i class="icon-link"></i> <a href="{{author.website}}">{{author.website}}</a></span>{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue