forked from TryGhost/Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.hbs
54 lines (46 loc) · 2.18 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
{{!< default}}
<div>
<div>
{{#author}}
<header>
<div class="flex flex-col md:flex-row p-2 md:p-3 lg:p-5">
{{#if profile_image}}
<div class="flex-none p-2 lg:p-6">
<img class="rounded-full h-24 w-24" src="{{profile_image}}" alt="{{name}}" />
</div>
{{/if}}
<div class="flex h-full">
<div class="flex-col p-2 lg:p-6 gap-10">
<div class="mb-3 mt-3">
<h1 class="font-bold text-4xl">{{name}}</h1>
</div>
<div class="mb-3 mt-3">
{{#if bio}}
<h2 class="text-lg">{{bio}}</h2>
{{/if}}
</div>
<div class="mb-3 mt-3">
<ul class="flex flex-row flex-wrap gap-2">
{{#if website}}
<li class="underline {{#unless current}}font-semibold{{/unless}}{{#if current}}font-bold{{/if}}"><a href="{{website}}" target="_blank" rel="noopener">Website</a></li>
{{/if}}
{{#if twitter}}
<li class="underline {{#unless current}}font-semibold{{/unless}}{{#if current}}font-bold{{/if}}"><a href="{{twitter_url}}" target="_blank" rel="noopener">Twitter</a></li>
{{/if}}
{{#if facebook}}
<li class="underline {{#unless current}}font-semibold{{/unless}}{{#if current}}font-bold{{/if}}"><a href="{{facebook_url}}" target="_blank" rel="noopener">Facebook</a></li>
{{/if}}
</ul>
</div>
</div>
</div>
</div>
</header>
{{/author}}
<div class="flex flex-col gap-6">
{{#foreach posts}}
{{> "card"}} {{!-- partials/card.hbs --}}
{{/foreach}}
</div>
</div>
</div>