forked from TryGhost/Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.hbs
46 lines (37 loc) · 1.29 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
{{!< default}}
<div class="gh-page">
<div class="gh-container">
{{#author}}
<header class="gh-page-head">
{{#if profile_image}}
<img class="gh-author-image" src="{{profile_image}}" alt="{{name}}" />
{{/if}}
<h1>{{name}}</h1>
{{#if bio}}
<p>{{bio}}</p>
{{/if}}
<div class="gh-author-meta">
<div class="gh-author-links">
{{#if website}}
<a href="{{website}}" target="_blank" rel="noopener">Website</a>
{{/if}}
{{#if twitter}}
<a href="{{twitter_url}}" target="_blank" rel="noopener">Twitter</a>
{{/if}}
{{#if facebook}}
<a href="{{facebook_url}}" target="_blank" rel="noopener">Facebook</a>
{{/if}}
</div>
</div>
{{#if cover_image}}
<img class="gh-page-image" src="{{cover_image}}" alt="{{name}}" />
{{/if}}
</header>
{{/author}}
<div class="gh-postfeed">
{{#foreach posts}}
{{> "card"}} {{!-- partials/card.hbs --}}
{{/foreach}}
</div>
</div>
</div>