mirror of
https://github.com/GenZmeY/casper-i18n.git
synced 2024-11-14 12:28:04 +00:00
Add fallback text if user has no entered a bio
This commit is contained in:
parent
00eca81a1e
commit
e9eca20883
4
post.hbs
4
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>
|
||||||
|
{{#if author.bio}}
|
||||||
<p>{{author.bio}}</p>
|
<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
Block a user