-
-
Notifications
You must be signed in to change notification settings - Fork 575
/
author.hbs
62 lines (51 loc) · 1.83 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
59
60
61
62
{{!< default}}
{{#author}}
<header class="blog-header{{#if cover_image}} has-cover{{/if}}">
<div class="inner">
<div class="archive archive-author box archive-box">
<span class="archive-info">
<span class="archive-type">{{t "Author"}}</span>
<span class="archive-count">{{plural ../pagination.total empty=(t "No Posts") singular=(t "% Post") plural=(t "% Posts")}}</span>
</span>
{{#if profile_image}}
<figure class="archive-avatar">
<img src="{{profile_image}}" alt="{{name}}" />
</figure>
{{else}}
<figure class="archive-avatar avatar"></figure>
{{/if}}
<h2 class="archive-title">{{name}}</h2>
{{#if bio}}
<span class="archive-description">{{{bio}}}</span>
{{/if}}
<span class="archive-links">
{{#if website}}
<a target="_blank" href="{{website}}" title="{{t "Website"}}"><i class="icon icon-globe">{{> "icons/icon-globe"}}</i><span>{{t "Website"}}</span></a>
{{/if}}
{{#if twitter}}
<a target="_blank" href="{{twitter_url}}" title="{{t "Twitter"}}"><i class="icon icon-twitter">{{> "icons/icon-twitter"}}</i><span>{{t "Twitter"}}</span></a>
{{/if}}
{{#if facebook}}
<a target="_blank" href="{{facebook_url}}" title="{{t "Facebook"}}"><i class="icon icon-facebook">{{> "icons/icon-facebook"}}</i><span>{{t "Facebook"}}</span></a>
{{/if}}
</span>
</div>
{{#if cover_image}}
<div class="blog-cover cover">
<img
srcset="{{img_url cover_image size="s"}} 320w,
{{img_url cover_image size="m"}} 640w,
{{img_url cover_image size="l"}} 960w,
{{img_url cover_image size="xl"}} 1920w"
src="{{img_url cover_image size="xl"}}"
alt="{{@site.title}}" />
</div>
{{/if}}
</div>
</header>
{{/author}}
<div id="index" class="container">
<main class="content" role="main">
{{> "loop"}}
</main>
</div>