-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.hbs
63 lines (56 loc) · 2.27 KB
/
author.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- Main --}}
<main id="main">
{{!-- Author info --}}
{{#author}}
<header class="author-header">
{{#if profile_image}}
<img class="author-profile-image" src="{{profile_image}}" alt="{{name}}" />
{{/if}}
<h1><a href="{{url}}">{{name}}</a></h1>
{{#if bio}}
<p class="content">{{bio}}</p>
{{/if}}
<div class="author-meta">
{{#if location}}
<div class="author-location icon fa-map-pin">{{location}} <span class="bull">•</span></div>
{{/if}}
<div class="author-stats">
{{plural ../pagination.total empty='No posts' singular='% post' plural='% posts'}} <span class="bull">•</span>
</div>
{{#if website}}
<a href="{{website}}" class="icon fa-globe" title="Website"><span class="label">Website</span></a>
{{/if}}
{{#if twitter}}
<a href="{{twitter_url}}" class="icon fa-twitter" title="Twitter"><span class="label">Twitter</span></a>
{{/if}}
{{#if facebook}}
<a href="{{facebook_url}}" class="icon fa-facebook" title="Facebook"><span class="label">Facebook</span></a>
{{/if}}
<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>
</div>
</header>
{{/author}}
{{!-- Posts --}}
<section class="posts">
{{#foreach posts}}
<article>
<header>
<span class="date">{{date format="MMM D, YYYY"}}</span>
<h2><a href="{{url}}">{{title}}</a></h2>
</header>
{{#if feature_image}}
<a href="{{url}}" class="image fit"><img src="{{img_url feature_image}}" alt="{{title}}" /></a>
{{/if}}
<p>{{excerpt words="33"}}</p>
<ul class="actions special">
<li><a href="{{url}}" class="button">Full Story</a></li>
</ul>
</article>
{{/foreach}}
</section>
{{!-- Pagination --}}
{{pagination}}
</main>