-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.hbs
120 lines (109 loc) · 5.38 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{{!< default}}
{{#author}}
<div class='author'>
{{#if profile_image}}
<div class='author__media'>
<img
class='author__image lazyload'
data-src='{{ img_url profile_image size='md' }}'
alt='{{ name }}'
width='80'
height='80'
/>
</div>
{{/if}}
<div class='author__content'>
<h1 class='author__title'>{{ name }}</h1>
{{#if bio}}
<p class='author__bio'>{{ bio }}</p>
{{/if}}
<ul class='o-plain-list author__links'>
{{#if twitter}}
<li class='author__links-item'>
<a href='{{ twitter_url }}' aria-label='Twitter' target='_blank' rel='noopener'>
<div class="icon icon--ei-sc-twitter icon--s author__links-icon">
<svg class="icon__cnt">
<use xlink:href="#ei-sc-twitter-icon">
<svg id="ei-sc-twitter-icon" viewBox="0 0 50 50">
<path d="M39.2 16.8c-1.1.5-2.2.8-3.5 1 1.2-.8 2.2-1.9 2.7-3.3-1.2.7-2.5 1.2-3.8 1.5-1.1-1.2-2.7-1.9-4.4-1.9-3.3 0-6.1 2.7-6.1 6.1 0 .5.1.9.2 1.4-5-.2-9.5-2.7-12.5-6.3-.5.7-.8 1.7-.8 2.8 0 2.1 1.1 4 2.7 5-1 0-1.9-.3-2.7-.8v.1c0 2.9 2.1 5.4 4.9 5.9-.5.1-1 .2-1.6.2-.4 0-.8 0-1.1-.1.8 2.4 3 4.2 5.7 4.2-2.1 1.6-4.7 2.6-7.5 2.6-.5 0-1 0-1.4-.1 2.4 1.9 5.6 2.9 9 2.9 11.1 0 17.2-9.2 17.2-17.2V20c1.2-.9 2.2-1.9 3-3.2z"></path>
</svg>
</use>
</svg>
</div>
</a>
</li>
{{/if}}
{{#if facebook}}
<li class='author__links-item'>
<a href='{{ facebook_url }}' class="github-link" aria-label='Github' target='_blank' rel='noopener'>
<div class="icon icon--ei-sc-github icon--s author__links-icon">
<svg class="icon__cnt">
<use xlink:href="#ei-sc-github-icon">
<svg id="ei-sc-github-icon" viewBox="0 0 50 50">
<path d="M26 20v-3c0-1.3.3-2 2.4-2H31v-5h-4c-5 0-7 3.3-7 7v3h-4v5h4v15h6V25h4.4l.6-5h-5z"></path>
</svg>
</use>
</svg>
<div class="author-meta-text">Github</div>
</div>
</a>
</li>
{{/if}}
{{#if website}}
<li class='author__links-item'>
<a href='{{ website }}' aria-label='Website' target='_blank' rel='noopener'>
<div class="icon icon--ei-link icon--s author__links-icon">
<svg class="icon__cnt">
<use xlink:href="#ei-link-icon">
<svg id="ei-link-icon" viewBox="0 0 50 50">
<path d="M24 30.2c0 .2.1.5.1.8 0 1.4-.5 2.6-1.5 3.6l-2 2c-1 1-2.2 1.5-3.6 1.5-2.8 0-5.1-2.3-5.1-5.1 0-1.4.5-2.6 1.5-3.6l2-2c1-1 2.2-1.5 3.6-1.5.3 0 .5 0 .8.1l1.5-1.5c-.7-.3-1.5-.4-2.3-.4-1.9 0-3.6.7-4.9 2l-2 2c-1.3 1.3-2 3-2 4.9 0 3.8 3.1 6.9 6.9 6.9 1.9 0 3.6-.7 4.9-2l2-2c1.3-1.3 2-3 2-4.9 0-.8-.1-1.6-.4-2.3L24 30.2z"></path>
<path d="M33 10.1c-1.9 0-3.6.7-4.9 2l-2 2c-1.3 1.3-2 3-2 4.9 0 .8.1 1.6.4 2.3l1.5-1.5c0-.2-.1-.5-.1-.8 0-1.4.5-2.6 1.5-3.6l2-2c1-1 2.2-1.5 3.6-1.5 2.8 0 5.1 2.3 5.1 5.1 0 1.4-.5 2.6-1.5 3.6l-2 2c-1 1-2.2 1.5-3.6 1.5-.3 0-.5 0-.8-.1l-1.5 1.5c.7.3 1.5.4 2.3.4 1.9 0 3.6-.7 4.9-2l2-2c1.3-1.3 2-3 2-4.9 0-3.8-3.1-6.9-6.9-6.9z"></path>
<path d="M20 31c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l10-10c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-10 10c-.2.2-.4.3-.7.3z"></path>
</svg>
</use>
</svg>
<div class="author-meta-text">{{ website }}</div>
</div>
</a>
</li>
{{/if}}
{{#if location}}
<li class='author__links-item' aria-label='Location'>
<div class="icon icon--ei-location icon--s author__links-icon">
<svg class="icon__cnt">
<use xlink:href="#ei-location-icon">
<svg id="ei-location-icon" viewBox="0 0 50 50">
<path d="M25 42.5l-.8-.9C23.7 41.1 12 27.3 12 19c0-7.2 5.8-13 13-13s13 5.8 13 13c0 8.3-11.7 22.1-12.2 22.7l-.8.8zM25 8c-6.1 0-11 4.9-11 11 0 6.4 8.4 17.2 11 20.4 2.6-3.2 11-14 11-20.4 0-6.1-4.9-11-11-11z"></path>
<path d="M25 24c-2.8 0-5-2.2-5-5s2.2-5 5-5 5 2.2 5 5-2.2 5-5 5zm0-8c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3z"></path>
</svg>
</use>
</svg>
</div>
<div class="author-meta-text">{{ location }}</div>
</li>
{{/if}}
<li class='author__links-item' aria-label='Posts'>
<div class="icon icon--ei-chart icon--s author__links-icon">
<svg class="icon__cnt">
<use xlink:href="#ei-chart-icon">
<svg id="ei-chart-icon" viewBox="0 0 50 50">
<path d="M18 36h-2V26h-4v10h-2V24h8z"></path>
<path d="M28 36h-2V20h-4v16h-2V18h8z"></path>
<path d="M38 36h-2V14h-4v22h-2V12h8z"></path>
<path d="M8 36h32v2H8z"></path>
</svg>
</use>
</svg>
</div>
</li>
<li>
<div class="author-meta-text">
{{plural ../pagination.total empty='No Posts' singular='% Post' plural='% Posts'}}
</div>
</li>
</ul>
</div>
</div>
{{/author}}
{{> loop }}
{{ pagination }}