-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathauthor.hbs
58 lines (51 loc) · 2.11 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}}
{{#author}}
<header class="site-heading bg-alternative">
<div class="container">
<div class="row align-items-center">
<div class="site-heading-content col mb-4 mb-lg-0">
<div class="d-flex flex-wrap">
{{#if profile_image}}
<img loading="lazy" src="{{img_url profile_image size="l"}}" alt="{{name}}"
class="avatar avatar-xl me-3 d-none d-lg-block" />
{{/if}}
<div>
<h1 class="fw-bold">{{name}}</h1>
{{#if bio}}
<p class="lead mb-0">
{{bio}}
</p>
{{/if}}
<div class="d-flex flex-wrap">
{{#if twitter}}
<div class="mt-3">
<a href="https://twitter.com/{{twitter}}?ref_src=twsrc%5Etfw" class="twitter-follow-button"
data-size="large" data-dnt="true" data-show-count="false">Follow @{{twitter}}</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
{{/if}}
</div>
</div>
</div>
</div>
</div>
</div>
</header>
{{/author}}
<div class="container my-5">
{{#foreach posts}}
<article class="post">
<div class="d-flex align-items-baseline mb-2 pb-1">
<div class="text-secondary text-right me-2 col-auto d-md-block d-none" style="width:120px">
{{#if featured}}⭐{{/if}} {{date format="MMM D, YYYY"}}</div>
<div class="col">
<a href="{{url}}" class="d-flex">
<h2 class="h5 fw-normal mb-0">
{{title}}
</h2>
</a>
</div>
</div>
</article>
{{/foreach}}
</div>