forked from TryGhost/Edition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.hbs
58 lines (45 loc) · 1.71 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
{{!< default}}
<main class="site-main">
{{#author}}
<section class="taxonomy gh-canvas">
{{#if profile_image}}
<div class="taxonomy-media u-placeholder square">
<img class="u-object-fit" src="{{img_url profile_image size="s"}}" alt="{{name}}">
</div>
{{/if}}
<header class="single-header">
{{#if website}}
<h1 class="single-title">
<a href="{{website}}" target="_blank" rel="noopener noreferrer">{{name}}</a>
</h1>
{{else}}
<h1 class="single-title">{{name}}</h1>
{{/if}}
{{#if location}}
<span class="author-meta">{{location}}</span>
{{/if}}
<div class="single-excerpt">{{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>
</header>
</section>
{{/author}}
<div class="post-feed gh-feed gh-canvas">
{{#foreach posts}}
{{> "loop"}}
{{/foreach}}
</div>
{{pagination}}
</main>