|
1 | | -{% assign author_data = site.data.authors[author_key] | default: site.author %} |
| 1 | +{% assign author = site.data.authors[author_key] | default: site.author %} |
2 | 2 | <div itemscope itemtype="https://schema.org/Person" class="h-card"> |
3 | 3 |
|
4 | | - {% if author_data.avatar %} |
| 4 | + {% if author.avatar %} |
5 | 5 | <div class="author__avatar"> |
6 | | - <a href="{{ author_data.home | default: '/' | absolute_url }}"> |
7 | | - <img src="{{ author_data.avatar | relative_url }}" alt="{{ author_data.name }}" itemprop="image" class="u-photo"> |
| 6 | + <a href="{{ author.home | default: '/' | absolute_url }}"> |
| 7 | + <img src="{{ author.avatar | relative_url }}" alt="{{ author.name }}" itemprop="image" class="u-photo"> |
8 | 8 | </a> |
9 | 9 | </div> |
10 | 10 | {% endif %} |
11 | 11 |
|
12 | 12 | <div class="author__content"> |
13 | 13 | <h3 class="author__name p-name" itemprop="name"> |
14 | | - <a class="u-url" rel="me" href="{{ author_data.home | default: '/' | absolute_url }}" itemprop="url">{{ author_data.name }}</a> |
| 14 | + <a class="u-url" rel="me" href="{{ author.home | default: '/' | absolute_url }}" itemprop="url">{{ author.name }}</a> |
15 | 15 | </h3> |
16 | | - {% if author_data.bio %} |
| 16 | + {% if author.bio %} |
17 | 17 | <div class="author__bio p-note" itemprop="description"> |
18 | | - {{ author_data.bio | markdownify }} |
| 18 | + {{ author.bio | markdownify }} |
19 | 19 | </div> |
20 | 20 | {% endif %} |
21 | 21 | </div> |
22 | 22 |
|
23 | 23 | <div class="author__urls-wrapper"> |
24 | 24 | <button class="btn btn--inverse">{{ site.data.ui-text[site.locale].follow_label | remove: ":" | default: "Follow" }}</button> |
25 | 25 | <ul class="author__urls social-icons"> |
26 | | - {% if author_data.location %} |
| 26 | + {% if author.location %} |
27 | 27 | <li itemprop="homeLocation" itemscope itemtype="https://schema.org/Place"> |
28 | | - <i class="fas fa-fw fa-map-marker-alt" aria-hidden="true"></i> <span itemprop="name" class="p-locality">{{ author_data.location }}</span> |
| 28 | + <i class="fas fa-fw fa-map-marker-alt" aria-hidden="true"></i> <span itemprop="name" class="p-locality">{{ author.location }}</span> |
29 | 29 | </li> |
30 | 30 | {% endif %} |
31 | 31 |
|
32 | | - {% if author_data.links %} |
33 | | - {% for link in author_data.links %} |
| 32 | + {% if author.links %} |
| 33 | + {% for link in author.links %} |
34 | 34 | {% if link.label and link.url %} |
35 | 35 | <li><a href="{{ link.url }}" rel="nofollow noopener noreferrer me"{% if link.url contains 'http' %} itemprop="sameAs"{% endif %}><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i><span class="label">{{ link.label }}</span></a></li> |
36 | 36 | {% endif %} |
37 | 37 | {% endfor %} |
38 | 38 | {% endif %} |
39 | 39 |
|
40 | | - {% if author_data.uri %} |
| 40 | + {% if author.uri %} |
41 | 41 | <li> |
42 | | - <a href="{{ author_data.uri }}" itemprop="url" rel="me"> |
| 42 | + <a href="{{ author.uri }}" itemprop="url" rel="me"> |
43 | 43 | <i class="fas fa-fw fa-link" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[site.locale].website_label | default: "Website" }}</span> |
44 | 44 | </a> |
45 | 45 | </li> |
46 | 46 | {% endif %} |
47 | 47 |
|
48 | | - {% if author_data.email %} |
| 48 | + {% if author.email %} |
49 | 49 | <li> |
50 | | - <a href="mailto:{{ author_data.email }}" rel="me" class="u-email"> |
51 | | - <meta itemprop="email" content="{{ author_data.email }}" /> |
| 50 | + <a href="mailto:{{ author.email }}" rel="me" class="u-email"> |
| 51 | + <meta itemprop="email" content="{{ author.email }}" /> |
52 | 52 | <i class="fas fa-fw fa-envelope-square" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[site.locale].email_label | default: "Email" }}</span> |
53 | 53 | </a> |
54 | 54 | </li> |
55 | 55 | {% endif %} |
56 | 56 |
|
57 | | - {% if author_data.keybase %} |
| 57 | + {% if author.keybase %} |
58 | 58 | <li> |
59 | | - <a href="https://keybase.io/{{ author_data.keybase }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 59 | + <a href="https://keybase.io/{{ author.keybase }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
60 | 60 | <i class="fab fa-fw fa-keybase" aria-hidden="true"></i><span class="label">Keybase</span> |
61 | 61 | </a> |
62 | 62 | </li> |
63 | 63 | {% endif %} |
64 | 64 |
|
65 | | - {% if author_data.twitter %} |
| 65 | + {% if author.twitter %} |
66 | 66 | <li> |
67 | | - <a href="https://twitter.com/{{ author_data.twitter }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 67 | + <a href="https://twitter.com/{{ author.twitter }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
68 | 68 | <i class="fab fa-fw fa-twitter-square" aria-hidden="true"></i><span class="label">Twitter</span> |
69 | 69 | </a> |
70 | 70 | </li> |
71 | 71 | {% endif %} |
72 | 72 |
|
73 | | - {% if author_data.facebook %} |
| 73 | + {% if author.facebook %} |
74 | 74 | <li> |
75 | | - <a href="https://www.facebook.com/{{ author_data.facebook }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 75 | + <a href="https://www.facebook.com/{{ author.facebook }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
76 | 76 | <i class="fab fa-fw fa-facebook-square" aria-hidden="true"></i><span class="label">Facebook</span> |
77 | 77 | </a> |
78 | 78 | </li> |
79 | 79 | {% endif %} |
80 | 80 |
|
81 | | - {% if author_data.linkedin %} |
| 81 | + {% if author.linkedin %} |
82 | 82 | <li> |
83 | | - <a href="https://www.linkedin.com/in/{{ author_data.linkedin }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 83 | + <a href="https://www.linkedin.com/in/{{ author.linkedin }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
84 | 84 | <i class="fab fa-fw fa-linkedin" aria-hidden="true"></i><span class="label">LinkedIn</span> |
85 | 85 | </a> |
86 | 86 | </li> |
87 | 87 | {% endif %} |
88 | 88 |
|
89 | | - {% if author_data.xing %} |
| 89 | + {% if author.xing %} |
90 | 90 | <li> |
91 | | - <a href="https://www.xing.com/profile/{{ author_data.xing }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 91 | + <a href="https://www.xing.com/profile/{{ author.xing }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
92 | 92 | <i class="fab fa-fw fa-xing-square" aria-hidden="true"></i><span class="label">XING</span> |
93 | 93 | </a> |
94 | 94 | </li> |
95 | 95 | {% endif %} |
96 | 96 |
|
97 | | - {% if author_data.instagram %} |
| 97 | + {% if author.instagram %} |
98 | 98 | <li> |
99 | | - <a href="https://instagram.com/{{ author_data.instagram }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 99 | + <a href="https://instagram.com/{{ author.instagram }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
100 | 100 | <i class="fab fa-fw fa-instagram" aria-hidden="true"></i><span class="label">Instagram</span> |
101 | 101 | </a> |
102 | 102 | </li> |
103 | 103 | {% endif %} |
104 | 104 |
|
105 | | - {% if author_data.tumblr %} |
| 105 | + {% if author.tumblr %} |
106 | 106 | <li> |
107 | | - <a href="https://{{ author_data.tumblr }}.tumblr.com" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 107 | + <a href="https://{{ author.tumblr }}.tumblr.com" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
108 | 108 | <i class="fab fa-fw fa-tumblr-square" aria-hidden="true"></i><span class="label">Tumblr</span> |
109 | 109 | </a> |
110 | 110 | </li> |
111 | 111 | {% endif %} |
112 | 112 |
|
113 | | - {% if author_data.bitbucket %} |
| 113 | + {% if author.bitbucket %} |
114 | 114 | <li> |
115 | | - <a href="https://bitbucket.org/{{ author_data.bitbucket }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 115 | + <a href="https://bitbucket.org/{{ author.bitbucket }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
116 | 116 | <i class="fab fa-fw fa-bitbucket" aria-hidden="true"></i><span class="label">Bitbucket</span> |
117 | 117 | </a> |
118 | 118 | </li> |
119 | 119 | {% endif %} |
120 | 120 |
|
121 | | - {% if author_data.github %} |
| 121 | + {% if author.github %} |
122 | 122 | <li> |
123 | | - <a href="https://github.com/{{ author_data.github }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 123 | + <a href="https://github.com/{{ author.github }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
124 | 124 | <i class="fab fa-fw fa-github" aria-hidden="true"></i><span class="label">GitHub</span> |
125 | 125 | </a> |
126 | 126 | </li> |
127 | 127 | {% endif %} |
128 | 128 |
|
129 | | - {% if author_data.gitlab %} |
| 129 | + {% if author.gitlab %} |
130 | 130 | <li> |
131 | | - <a href="https://gitlab.com/{{ author_data.gitlab }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 131 | + <a href="https://gitlab.com/{{ author.gitlab }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
132 | 132 | <i class="fab fa-fw fa-gitlab" aria-hidden="true"></i><span class="label">GitLab</span> |
133 | 133 | </a> |
134 | 134 | </li> |
135 | 135 | {% endif %} |
136 | 136 |
|
137 | | - {% if author_data.stackoverflow %} |
| 137 | + {% if author.stackoverflow %} |
138 | 138 | <li> |
139 | | - <a href="https://stackoverflow.com/users/{{ author_data.stackoverflow }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 139 | + <a href="https://stackoverflow.com/users/{{ author.stackoverflow }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
140 | 140 | <i class="fab fa-fw fa-stack-overflow" aria-hidden="true"></i><span class="label">Stack Overflow</span> |
141 | 141 | </a> |
142 | 142 | </li> |
143 | 143 | {% endif %} |
144 | 144 |
|
145 | | - {% if author_data.lastfm %} |
| 145 | + {% if author.lastfm %} |
146 | 146 | <li> |
147 | | - <a href="https://last.fm/user/{{ author_data.lastfm }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 147 | + <a href="https://last.fm/user/{{ author.lastfm }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
148 | 148 | <i class="fab fa-fw fa-lastfm-square" aria-hidden="true"></i><span class="label">Last.fm</span> |
149 | 149 | </a> |
150 | 150 | </li> |
151 | 151 | {% endif %} |
152 | 152 |
|
153 | | - {% if author_data.dribbble %} |
| 153 | + {% if author.dribbble %} |
154 | 154 | <li> |
155 | | - <a href="https://dribbble.com/{{ author_data.dribbble }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 155 | + <a href="https://dribbble.com/{{ author.dribbble }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
156 | 156 | <i class="fab fa-fw fa-dribbble" aria-hidden="true"></i><span class="label">Dribbble</span> |
157 | 157 | </a> |
158 | 158 | </li> |
159 | 159 | {% endif %} |
160 | 160 |
|
161 | | - {% if author_data.pinterest %} |
| 161 | + {% if author.pinterest %} |
162 | 162 | <li> |
163 | | - <a href="https://www.pinterest.com/{{ author_data.pinterest }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 163 | + <a href="https://www.pinterest.com/{{ author.pinterest }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
164 | 164 | <i class="fab fa-fw fa-pinterest" aria-hidden="true"></i><span class="label">Pinterest</span> |
165 | 165 | </a> |
166 | 166 | </li> |
167 | 167 | {% endif %} |
168 | 168 |
|
169 | | - {% if author_data.foursquare %} |
| 169 | + {% if author.foursquare %} |
170 | 170 | <li> |
171 | | - <a href="https://foursquare.com/{{ author_data.foursquare }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 171 | + <a href="https://foursquare.com/{{ author.foursquare }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
172 | 172 | <i class="fab fa-fw fa-foursquare" aria-hidden="true"></i><span class="label">Foursquare</span> |
173 | 173 | </a> |
174 | 174 | </li> |
175 | 175 | {% endif %} |
176 | 176 |
|
177 | | - {% if author_data.steam %} |
| 177 | + {% if author.steam %} |
178 | 178 | <li> |
179 | | - <a href="https://steamcommunity.com/id/{{ author_data.steam }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 179 | + <a href="https://steamcommunity.com/id/{{ author.steam }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
180 | 180 | <i class="fab fa-fw fa-steam" aria-hidden="true"></i><span class="label">Steam</span> |
181 | 181 | </a> |
182 | 182 | </li> |
183 | 183 | {% endif %} |
184 | 184 |
|
185 | | - {% if author_data.youtube %} |
186 | | - {% if author_data.youtube contains "://" %} |
| 185 | + {% if author.youtube %} |
| 186 | + {% if author.youtube contains "://" %} |
187 | 187 | <li> |
188 | | - <a href="{{ author_data.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 188 | + <a href="{{ author.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
189 | 189 | <i class="fab fa-fw fa-youtube" aria-hidden="true"></i><span class="label">YouTube</span> |
190 | 190 | </a> |
191 | 191 | </li> |
192 | | - {% elsif author_data.youtube %} |
| 192 | + {% elsif author.youtube %} |
193 | 193 | <li> |
194 | | - <a href="https://www.youtube.com/user/{{ author_data.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 194 | + <a href="https://www.youtube.com/user/{{ author.youtube }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
195 | 195 | <i class="fab fa-fw fa-youtube" aria-hidden="true"></i><span class="label">YouTube</span> |
196 | 196 | </a> |
197 | 197 | </li> |
198 | 198 | {% endif %} |
199 | 199 | {% endif %} |
200 | 200 |
|
201 | | - {% if author_data.soundcloud %} |
| 201 | + {% if author.soundcloud %} |
202 | 202 | <li> |
203 | | - <a href="https://soundcloud.com/{{ author_data.soundcloud }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 203 | + <a href="https://soundcloud.com/{{ author.soundcloud }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
204 | 204 | <i class="fab fa-fw fa-soundcloud" aria-hidden="true"></i><span class="label">SoundCloud</span> |
205 | 205 | </a> |
206 | 206 | </li> |
207 | 207 | {% endif %} |
208 | 208 |
|
209 | | - {% if author_data.weibo %} |
| 209 | + {% if author.weibo %} |
210 | 210 | <li> |
211 | | - <a href="https://www.weibo.com/{{ author_data.weibo }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 211 | + <a href="https://www.weibo.com/{{ author.weibo }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
212 | 212 | <i class="fab fa-fw fa-weibo" aria-hidden="true"></i><span class="label">Weibo</span> |
213 | 213 | </a> |
214 | 214 | </li> |
215 | 215 | {% endif %} |
216 | 216 |
|
217 | | - {% if author_data.flickr %} |
| 217 | + {% if author.flickr %} |
218 | 218 | <li> |
219 | | - <a href="https://www.flickr.com/{{ author_data.flickr }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 219 | + <a href="https://www.flickr.com/{{ author.flickr }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
220 | 220 | <i class="fab fa-fw fa-flickr" aria-hidden="true"></i><span class="label">Flickr</span> |
221 | 221 | </a> |
222 | 222 | </li> |
223 | 223 | {% endif %} |
224 | 224 |
|
225 | | - {% if author_data.codepen %} |
| 225 | + {% if author.codepen %} |
226 | 226 | <li> |
227 | | - <a href="https://codepen.io/{{ author_data.codepen }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 227 | + <a href="https://codepen.io/{{ author.codepen }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
228 | 228 | <i class="fab fa-fw fa-codepen" aria-hidden="true"></i><span class="label">CodePen</span> |
229 | 229 | </a> |
230 | 230 | </li> |
231 | 231 | {% endif %} |
232 | 232 |
|
233 | | - {% if author_data.vine %} |
| 233 | + {% if author.vine %} |
234 | 234 | <li> |
235 | | - <a href="https://vine.co/u/{{ author_data.vine }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
| 235 | + <a href="https://vine.co/u/{{ author.vine }}" itemprop="sameAs" rel="nofollow noopener noreferrer me"> |
236 | 236 | <i class="fab fa-fw fa-vine" aria-hidden="true"></i><span class="label">{{ site.data.ui-text[site.locale].email_label | default: "Email" }}</span> |
237 | 237 | </a> |
238 | 238 | </li> |
|
0 commit comments