-
Notifications
You must be signed in to change notification settings - Fork 220
/
author.hbs
52 lines (41 loc) · 1.51 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
{{!< default}}
<main class="site-main">
{{#author}}
<section class="author gh-canvas">
<div class="author-image-placeholder u-placeholder square">
<img class="author-image u-object-fit" src="{{img_url profile_image size="xs"}}" alt="{{name}}">
</div>
{{#if website}}
<h1 class="author-name">
<a href="{{website}}" target="_blank" rel="noopener noreferrer">{{name}}</a>
</h1>
{{else}}
<h1 class="author-name">{{name}}</h1>
{{/if}}
{{#if location}}
<span class="author-meta">{{location}}</span>
{{/if}}
<div class="author-bio">{{bio}}</div>
<div class="share author-social">
{{#if facebook}}
<a class="share-link share-link-facebook author-social-item" href="https://www.facebook.com/{{facebook}}" target="_blank" rel="noopener noreferrer">
{{> "icons/facebook"}}
Facebook
</a>
{{/if}}
{{#if twitter}}
<a class="share-link share-link-twitter author-social-item" href="https://twitter.com/{{twitter}}" target="_blank" rel="noopener noreferrer">
{{> "icons/twitter"}}
Twitter
</a>
{{/if}}
</div>
</section>
{{/author}}
<div class="post-feed gh-feed gh-canvas">
{{#foreach posts}}
{{> "loop"}}
{{/foreach}}
</div>
{{pagination}}
</main>