-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathauthor.hbs
64 lines (55 loc) · 2.16 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
64
{{!-- Include the header from partials/header.hbs --}}
{{> header}}
{{!-- Switch to the author context --}}
{{#author}}
{{!-- Show the cover photo --}}
<header class="cover" {{#if cover}}style="background-image: url('{{img cover}}');"{{/if}}>
<div class="content">
<h1 class="title">{{name}}</h1>
</div>
</header>
{{/author}}
<div class="container">
<div class="row">
<div class="col-md-8 push-md-2 col-sm-10 push-sm-1">
<div class="author">
{{!-- Switch to the author context --}}
{{#author}}
{{!-- Avatar --}}
{{#if avatar}}
<img class="avatar" src="{{img avatar}}" alt="Avatar">
{{/if}}
{{!-- Author details --}}
<div class="details">
{{!-- Location --}}
{{#if location}}
<span class="location">
<span class="icon icon-location"></span>
{{location}}
</span>
{{/if}}
{{!-- Website --}}
{{#if website}}
<span class="website">
<span class="icon icon-link"></span>
<a href="{{website}}">{{website}}</a>
</span>
{{/if}}
</div>
{{!-- Bio --}}
<div class="bio">{{bio}}</div>
{{!-- Post count --}}
<div class="post-count">
{{plural ../pagination.total_items none="No posts" singular="One post" plural="% posts"}}
</div>
{{/author}}
</div>
{{!-- Include the post loop from partials/loop.hbs --}}
{{> loop}}
{{!-- Include pagination from partials/pagination.hbs --}}
{{> pagination}}
</div>
</div>
</div>
{{!-- Include the footer from partials/footer.hbs --}}
{{> footer}}