-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.hbs
71 lines (61 loc) · 2.15 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
63
64
65
66
67
68
69
70
71
{{!< default}}
{{#author}}
<header class="blog-header{{#if cover_image}} has-cover{{else}}{{#if @site.cover_image}} has-cover{{/if}}{{/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>
<figure class="archive-avatar avatar">
{{#if profile_image}}
<img src="{{profile_image}}" alt="{{name}}" />
{{/if}}
</figure>
<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"></i><span>{{t "Website"}}</span></a>
{{/if}}
{{#if twitter}}
<a target="_blank" href="{{twitter_url}}" title="{{t "Twitter"}}"><i class="icon 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"></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>
{{else}}
{{#if @site.cover_image}}
<div class="blog-cover cover">
<img
srcset="{{img_url @site.cover_image size="s"}} 320w,
{{img_url @site.cover_image size="m"}} 640w,
{{img_url @site.cover_image size="l"}} 960w,
{{img_url @site.cover_image size="xl"}} 1920w"
src="{{img_url @site.cover_image size="xl"}}"
alt="{{@site.title}}" />
</div>
{{/if}}
{{/if}}
</div>
</header>
{{/author}}
<div id="index" class="container">
<main class="content" role="main">
{{> "loop"}}
</main>
</div>