-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathauthor.hbs
executable file
·43 lines (42 loc) · 2.03 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
{{!< default}}
{{! The tag above means - insert everything in this file into the {body} of the default.hbs template }}
<div class="site-content-wrap fade-in-up">
{{#author}}
<div class="container-fluid">
<div class="cover-wrap {{#if cover_image}} has-image" style="background-image:url({{cover_image}});{{/if}}">
<div class="cover-inner text-center">
{{#if profile_image}}
<div class="avarat-wrap">
<img src="{{img_url profile_image size="s"}}" alt="{{name}}" class="avatar clearfix" role="presentation">
</div>
{{else}}
<div class="avatar no-image ml-auto mr-auto">{{> icons/user}}</div>
{{/if}}
<h1 class="name d-inline-flex">{{name}}</h1>
<div class="post-count">{{t "Total"}} {{plural ../pagination.total 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 location}}
<li class="location" aria-label="Location">{{> icons/location}}{{location}}</li>
{{/if}}
{{#if twitter}}
<li><a href="{{twitter_url}}" target="_blank" aria-label="Twitter" rel="noopener">{{> icons/twitter}}</a></li>
{{/if}}
{{#if facebook}}
<li><a href="{{facebook_url}}" target="_blank" aria-label="Facebook" rel="noopener">{{> icons/facebook}}</a></li>
{{/if}}
{{#if website}}
<li><a href="{{website}}" target="_blank" aria-label="Website" rel="noopener">{{> icons/link}}</a></li>
{{/if}}
</ul>
</div>
</div>
</div>
{{/author}}
<div class="post-list">
{{> loop}}
</div>
{{pagination}}
</div>