-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathcustom-author-archive.hbs
executable file
·62 lines (62 loc) · 3.32 KB
/
custom-author-archive.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
59
60
61
62
{{!< default}}
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}
<div class="inner-wrap-container">
<div class="site-content-wrap">
<div class="container-fluid">
{{#post}}
<div class="row">
<div class="col">
<div class="post-wrap">
<article class="post-single {{post_class}}">
<div class="post-header d-flex {{#if feature_image}}has-image"
style="background-image: url({{feature_image}});{{/if}}">
<div class="header-content-wrap text-center">
<h1 class="post-title text-center">{{title}}</h1>
</div>
</div>
</article>
</div>
</div>
</div>
{{/post}}
<div class="row">
{{#get "authors" limit="all" include="count.posts" order="name asc"}}
{{#foreach authors}}
<div class="col-md-4 col-sm-6 card-wrap tag-card-wrap fade-in-up">
{{!-- <a href="{{url}}"> --}}
<div class="card-single author-card text-center d- h-100 align-items-center{{#if cover_image}} has-image" style="background-image:url({{cover_image}});{{/if}}">
<div class="inner-content mx-auto">
{{#if profile_image}}
<a href="{{url}}"><img src="{{img_url profile_image size="s"}}" alt="{{name}}" class="avatar"></a>
{{else}}
<a href="{{url}}"><div class="avatar no-image ml-auto mr-auto">{{> icons/user}}</div></a>
{{/if}}
<h2 class="author-name h4"><a href="{{url}}">{{name}}</a></h2>
<div class="post-count">{{plural count.posts empty=(t "0 Post") singular=(t "1 Post") plural=(t "% Posts")}}</div>
{{#if bio}}
<div class="bio">{{bio}}</div>
{{/if}}
<ul class="meta-info">
{{#if twitter}}
<li><a href="{{twitter_url}}" target="_blank">{{> icons/twitter}}</a></li>
{{/if}}
{{#if facebook}}
<li><a href="{{facebook_url}}" target="_blank">{{> icons/facebook}}</a></li>
{{/if}}
{{#if website}}
<li><a href="{{website}}" target="_blank">{{> icons/link}}</a></li>
{{/if}}
{{#if location}}
<li class="location">{{> icons/location}}{{location}}</li>
{{/if}}
</ul>
</div>
</div>
{{!-- </a> --}}
</div>
{{/foreach}}
{{/get}}
</div>
</div>
</div>
</div>