forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
custom-author.hbs
57 lines (52 loc) · 1.95 KB
/
custom-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
{{!< default}}
{{#post}}
<main id="site-main" class="site-main outer" role="main">
<div class="inner">
<header class="article-header gh-canvas">
<h1 class="article-title">{{title}}</h1>
</header>
<div class="post-feed authors-list">
{{#foreach authors}}
<article class="post-card">
<a class="author-link" href="{{url}}">
{{#if profile_image}}
<img class="author-profile-image" src="{{profile_image}}" alt="{{name}}" />
{{else}}
<span class="author-profile-image">{{> "icons/avatar"}}</span>
{{/if}}
</a>
<div class="post-card-content">
<header class="post-card-header">
<h2 class="post-card-title">
<a class="author-link" href="{{url}}">{{name}}</a>
</h2>
</header>
<section class="post-card-excerpt">
{{#if location}}
<p>
<a class="author-location" href="https://maps.google.com?q={{location}}" target="_blank">
<i class="fa fa-map-marker" aria-hidden="true"></i> {{location}}
</a>
</p>
{{/if}}
<p>{{bio}}</p>
</section>
<p>
{{#if twitter}}
<a href="{{twitter_url}}" class="author-link author-social twitter" target="_blank" title="X">
{{> "icons/twitter"}}
</a>
{{/if}}
{{#if website}}
<a href="{{website}}" class="author-link author-social" target="_blank" title="Website">
<i class="fa fa-2 fa-globe" aria-hidden="true"></i>
</a>
{{/if}}
</p>
</div>
</article>
{{/foreach}}
</div>
</div>
</main>
{{/post}}