-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathauthor.hbs
78 lines (60 loc) · 2 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{{!< default}}
{{> content-header}}
{{#author}}
<section class="author-profile container">
{{#if profile_image}}
<img class="author-profile__image" src="{{profile_image}}" alt="{{name}}’s profile image" />
{{/if}}
<h1 class="author-profile__name">{{name}}</h1>
{{#if bio}}
<p class="author-profile__bio">{{bio}}</p>
{{else}}
<p class="author-profile__bio">
To let their work speak for itself, {{name}} has not written a bio.
</p>
{{/if}}
<div class="author-profile__meta">
{{#if location}}
<span class="author-info__location inline-block">
Location: <strong>{{location}}</strong>
</span>
 
{{/if}}
{{#if website}}
<span class="author-info__website inline-block">
Website: <a href="{{website}}"><strong>{{website}}</strong></a>
</span>
 
{{/if}}
<span class="author-info__rss inline-block">
<a href="{{url}}rss">
<strong>RSS feed</strong>
</a> of posts by {{name}} 
</span>
 
{{#if twitter}}
<span class="author-info__twitter inline-block">
Twitter handle: <a href="{{twitter_url}}"><strong>{{name}}</strong></a>
</span>
 
{{/if}}
{{#if facebook}}
<span class="author-info__facebook inline-block">
Facebook page: <a href="{{facebook_url}}"><strong>{{facebook_url}}</strong></a>
</span>
 
{{/if}}
<br><br>
<span class="author-profile__stats inline-block">
{{name}}
{{plural ../pagination.total empty='hasn’t published any posts yet.' singular='has published <strong>% post</strong>:' plural='has published <strong>% posts</strong>:'}}
</span>
<br><br>
</div> {{! end author meta }}
</section>
{{/author}}
{{! The main content area on the homepage }}
<main class="content">
{{! The tag below includes the post loop - partials/loop.hbs }}
{{> "loop"}}
</main>