mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 19:47:38 +00:00
Replace dodgy author helper with better one
This commit is contained in:
parent
f6f2a06f7a
commit
8ff0ac386c
24
post.hbs
24
post.hbs
@ -26,24 +26,32 @@
|
||||
</section>
|
||||
|
||||
<footer class="post-footer">
|
||||
{{#if author.image}}
|
||||
|
||||
{{! Everything inside the ((#with author)) tags pulls data from the author }}
|
||||
{{#with author}}
|
||||
|
||||
{{#if 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>
|
||||
<A class="img" href="{{url}}" style="background-image: url({{image}})"><span class="hidden">{{name}}'s Picture</span></a>
|
||||
</figure>
|
||||
{{/if}}
|
||||
|
||||
<section class="author">
|
||||
<h4><a href="{{@blog.url}}/author/{{author.slug}}">{{author.name}}</a></h4>
|
||||
{{#if author.bio}}
|
||||
<p>{{author.bio}}</p>
|
||||
<h4><a href="{{url}}">{{name}}</a></h4>
|
||||
|
||||
{{#if bio}}
|
||||
<p>{{bio}}</p>
|
||||
{{else}}
|
||||
<p>Read <a href="{{@blog.url}}/author/{{author.slug}}">more posts</a> by this author.</p>
|
||||
<p>Read <a href="{{url}}">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}}
|
||||
{{#if location}}<span class="author-location"><i class="icon-location"></i> {{location}}</span>{{/if}}
|
||||
{{#if website}}<span class="author-link"><i class="icon-link"></i> <a href="{{website}}">{{website}}</a></span>{{/if}}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{/with}}
|
||||
|
||||
<section class="share">
|
||||
<h4>Share this post</h4>
|
||||
<a class="icon-twitter" href="https://twitter.com/share?text={{encode title}}&url={{url absolute="true"}}"
|
||||
|
Loading…
Reference in New Issue
Block a user