Added tag page
[editorial.git] / author.hbs
1 {{!< default}}
2 {{!-- The tag above means: insert everything in this file
3 into the {body} of the default.hbs template --}}
4
5 {{!-- Author info --}}
6 {{#author}}
7 <header class="author-header">
8 {{#if profile_image}}
9 <img class="author-profile-image" src="{{profile_image}}" alt="{{name}}" />
10 {{/if}}
11 <h1><a href="{{url}}">{{name}}</a></h1>
12 {{#if bio}}
13 <p class="content">{{bio}}</p>
14 {{/if}}
15 <div class="author-meta">
16 {{#if location}}
17 <div class="author-location icon fa-map-pin">{{location}} <span class="bull">&bull;</span></div>
18 {{/if}}
19 <div class="author-stats">
20 {{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}} <span class="bull">&bull;</span>
21 </div>
22 {{#if website}}
23 <a href="{{url}}" class="icon fa-globe" title="Website"><span class="label">Website</span></a>
24 {{/if}}
25 {{#if twitter}}
26 <a href="{{twitter_url}}" class="icon fa-twitter" title="Twitter"><span class="label">Twitter</span></a>
27 {{/if}}
28 {{#if facebook}}
29 <a href="{{facebook_url}}" class="icon fa-facebook" title="Facebook"><span class="label">Facebook</span></a>
30 {{/if}}
31 <a href="https://feedly.com/i/subscription/feed/{{url absolute="true"}}rss/" class="icon fa-rss" target="_blank" rel="noopener"><span class="label" title="RSS">RSS</span></a>
32 </div>
33 </header>
34 {{/author}}
35
36 {{!-- Posts --}}
37 <section>
38
39 <section class="posts">
40 {{#foreach posts}}
41 <article>
42 {{#if feature_image}}
43 <a href="{{url}}" class="image fit"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
44 {{/if}}
45 <h3><a href="{{url}}">{{title}}</a></h3>
46 <p>{{excerpt words="33"}}</p>
47 <ul class="actions special">
48 <li><a href="{{url}}" class="button">Full Story</a></li>
49 </ul>
50 </article>
51 {{/foreach}}
52 </section>
53
54 </section>
55
56 {{!-- Pagination --}}
57 {{pagination}}