-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.hbs
More file actions
executable file
·185 lines (168 loc) · 4.54 KB
/
author.hbs
File metadata and controls
executable file
·185 lines (168 loc) · 4.54 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
{{!< default}}
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
<div id="page-author">
{{#author}}
<header
id="author"
class="clearfix main-card {{#if cover_image}}text-white{{/if}}"
{{#if cover_image}}style="background-image: url({{cover_image}})"{{/if}}
>
<div class="fl info">
<h1>{{name}}</h1>
<div class="meta">
{{#if location}}
<small>{{location}}</small>
{{/if}}
<small>
{{plural ../pagination.total
empty=(t "No Posts")
singular=(t "% Post")
plural=(t "% Posts")}}
</small>
</div>
<ul class="links">
{{#if website}}
<li>
<a
href="{{website}}"
title="{{t "Website"}}"
target="_blank"
rel="noopener"
>
<i class="icon-social social-website"></i>
</a>
</li>
{{/if}}
{{#if facebook}}
<li>
<a
href="{{social_url type="facebook"}}"
title="Facebook"
target="_blank"
rel="noopener"
>
<i class="icon-social social-facebook"></i>
</a>
</li>
{{/if}}
{{#if twitter}}
<li>
<a
href="{{social_url type="twitter"}}"
title="X"
target="_blank"
rel="noopener"
>
<i class="icon-social social-x"></i>
</a>
</li>
{{/if}}
{{#if linkedin}}
<li>
<a
href="{{social_url type="linkedin"}}"
title="LinkedIn"
target="_blank"
rel="noopener"
>
<i class="icon-social social-linkedin"></i>
</a>
</li>
{{/if}}
{{#if bluesky}}
<li>
<a
href="{{social_url type="bluesky"}}"
title="BlueSky"
target="_blank"
rel="noopener"
>
<i class="icon-social social-bluesky"></i>
</a>
</li>
{{/if}}
{{#if threads}}
<li>
<a
href="{{social_url type="threads"}}"
title="Threads"
target="_blank"
rel="noopener"
>
<i class="icon-social social-threads"></i>
</a>
</li>
{{/if}}
{{#if mastodon}}
<li>
<a
href="{{social_url type="mastodon"}}"
title="Mastodon"
target="_blank"
rel="noopener"
>
<i class="icon-social social-mastodon"></i>
</a>
</li>
{{/if}}
{{#if tiktok}}
<li>
<a
href="{{social_url type="tiktok"}}"
title="TikTok"
target="_blank"
rel="noopener"
>
<i class="icon-social social-tiktok"></i>
</a>
</li>
{{/if}}
{{#if youtube}}
<li>
<a
href="{{social_url type="youtube"}}"
title="YouTube"
target="_blank"
rel="noopener"
>
<i class="icon-social social-youtube"></i>
</a>
</li>
{{/if}}
{{#if instagram}}
<li>
<a
href="{{social_url type="instagram"}}"
title="Instagram"
target="_blank"
rel="noopener"
>
<i class="icon-social social-instagram"></i>
</a>
</li>
{{/if}}
</ul>
{{#if bio}}
<div class="bio">
<small>{{bio}}</small>
</div>
{{/if}}
</div>
<img
class="fl avatar"
{{#if profile_image}}
src="{{profile_image}}"
{{else}}
src="{{asset "images/default-author-avatar.png"}}"
{{/if}}
alt="{{name}}"
>
</header>
{{/author}}
{{#if posts}}
{{> 'posts-list'}}
{{pagination}}
{{else}}
{{> 'post-none'}}
{{/if}}
</div>