-
-
Notifications
You must be signed in to change notification settings - Fork 210
/
custom-archive-author.hbs
45 lines (37 loc) · 2.13 KB
/
custom-archive-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
{{!-- Layout --}}
{{!< default}}
{{#post}}
<div class="max-w-5xl px-4 mx-auto py-8 text-center">
<h1 class="text-title lg:text-5xl mt-12 mb-10">{{title}}</h1>
<div class="font-normal mx-auto text-xl max-w-2xl">{{content}}</div>
</div>
{{/post}}
<div class="archive-author-inner container mx-auto my-10">
<div class="grid gap-12 max-w-5xl mx-auto md:grid-cols-2 lg:grid-cols-3">
{{#get "authors" limit="all"}}{{#foreach authors}}
<article class="author-card relative flex flex-col">
<a href="{{url}}" class="author-card-avatar relative bg-gray-100 h-72">
{{#if profile_image}}
<img
class="image-inset absolute rounded blur-up lazyload"
src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
data-srcset="{{img_url profile_image size="s"}} 300w,{{img_url profile_image size="m"}} 600w"
data-sizes="auto"
alt="{{t "Hi I'm"}} {{name}}" />
{{/if}}
</a>
<div class="flex flex-col justify-between flex-grow">
<div class="flex-grow">
<h2 class="mt-5 text-26 mb-3 text-title"><a href="{{url}}" class="hover:text-gray-800">{{name}}</a></h2>
{{#if website}}<a href="{{website}}" class="text-gray-500 text-base block mb-3 hover:text-gray-900" target="_blank" rel="noopener noreferrer">{{website}}</a>{{/if}}
{{#if bio}}<p class="text-base lineClamp-3">{{bio}}</p>{{/if}}
</div>
<div class="author-social-media flex mt-5">
{{#if facebook}}<a href="{{facebook_url}}" class="button w-full is-black is-outlined rounded-none text-sm" title="Facebook" target="_blank" rel="noopener noreferrer">Facebook</a>{{/if}}
{{#if twitter}}<a href="{{twitter_url}}" class="button w-full is-black is-outlined rounded-none text-sm" title="{{twitter}}" target="_blank" rel="noopener noreferrer">Twitter</a>{{/if}}
</div>
</div>
</article>
{{/foreach}}{{/get}}
</div>
</div>