Skip to content

Commit 44814ec

Browse files
committed
revert to author for cleaner PR diff
1 parent cd0ba19 commit 44814ec

1 file changed

Lines changed: 63 additions & 63 deletions

File tree

_includes/author-profile.html

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,238 +1,238 @@
1-
{% assign author_data = site.data.authors[author_key] | default: site.author %}
1+
{% assign author = site.data.authors[author_key] | default: site.author %}
22
<div itemscope itemtype="https://schema.org/Person" class="h-card">
33

4-
{% if author_data.avatar %}
4+
{% if author.avatar %}
55
<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">
88
</a>
99
</div>
1010
{% endif %}
1111

1212
<div class="author__content">
1313
<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>
1515
</h3>
16-
{% if author_data.bio %}
16+
{% if author.bio %}
1717
<div class="author__bio p-note" itemprop="description">
18-
{{ author_data.bio | markdownify }}
18+
{{ author.bio | markdownify }}
1919
</div>
2020
{% endif %}
2121
</div>
2222

2323
<div class="author__urls-wrapper">
2424
<button class="btn btn--inverse">{{ site.data.ui-text[site.locale].follow_label | remove: ":" | default: "Follow" }}</button>
2525
<ul class="author__urls social-icons">
26-
{% if author_data.location %}
26+
{% if author.location %}
2727
<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>
2929
</li>
3030
{% endif %}
3131

32-
{% if author_data.links %}
33-
{% for link in author_data.links %}
32+
{% if author.links %}
33+
{% for link in author.links %}
3434
{% if link.label and link.url %}
3535
<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>
3636
{% endif %}
3737
{% endfor %}
3838
{% endif %}
3939

40-
{% if author_data.uri %}
40+
{% if author.uri %}
4141
<li>
42-
<a href="{{ author_data.uri }}" itemprop="url" rel="me">
42+
<a href="{{ author.uri }}" itemprop="url" rel="me">
4343
<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>
4444
</a>
4545
</li>
4646
{% endif %}
4747

48-
{% if author_data.email %}
48+
{% if author.email %}
4949
<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 }}" />
5252
<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>
5353
</a>
5454
</li>
5555
{% endif %}
5656

57-
{% if author_data.keybase %}
57+
{% if author.keybase %}
5858
<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">
6060
<i class="fab fa-fw fa-keybase" aria-hidden="true"></i><span class="label">Keybase</span>
6161
</a>
6262
</li>
6363
{% endif %}
6464

65-
{% if author_data.twitter %}
65+
{% if author.twitter %}
6666
<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">
6868
<i class="fab fa-fw fa-twitter-square" aria-hidden="true"></i><span class="label">Twitter</span>
6969
</a>
7070
</li>
7171
{% endif %}
7272

73-
{% if author_data.facebook %}
73+
{% if author.facebook %}
7474
<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">
7676
<i class="fab fa-fw fa-facebook-square" aria-hidden="true"></i><span class="label">Facebook</span>
7777
</a>
7878
</li>
7979
{% endif %}
8080

81-
{% if author_data.linkedin %}
81+
{% if author.linkedin %}
8282
<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">
8484
<i class="fab fa-fw fa-linkedin" aria-hidden="true"></i><span class="label">LinkedIn</span>
8585
</a>
8686
</li>
8787
{% endif %}
8888

89-
{% if author_data.xing %}
89+
{% if author.xing %}
9090
<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">
9292
<i class="fab fa-fw fa-xing-square" aria-hidden="true"></i><span class="label">XING</span>
9393
</a>
9494
</li>
9595
{% endif %}
9696

97-
{% if author_data.instagram %}
97+
{% if author.instagram %}
9898
<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">
100100
<i class="fab fa-fw fa-instagram" aria-hidden="true"></i><span class="label">Instagram</span>
101101
</a>
102102
</li>
103103
{% endif %}
104104

105-
{% if author_data.tumblr %}
105+
{% if author.tumblr %}
106106
<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">
108108
<i class="fab fa-fw fa-tumblr-square" aria-hidden="true"></i><span class="label">Tumblr</span>
109109
</a>
110110
</li>
111111
{% endif %}
112112

113-
{% if author_data.bitbucket %}
113+
{% if author.bitbucket %}
114114
<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">
116116
<i class="fab fa-fw fa-bitbucket" aria-hidden="true"></i><span class="label">Bitbucket</span>
117117
</a>
118118
</li>
119119
{% endif %}
120120

121-
{% if author_data.github %}
121+
{% if author.github %}
122122
<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">
124124
<i class="fab fa-fw fa-github" aria-hidden="true"></i><span class="label">GitHub</span>
125125
</a>
126126
</li>
127127
{% endif %}
128128

129-
{% if author_data.gitlab %}
129+
{% if author.gitlab %}
130130
<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">
132132
<i class="fab fa-fw fa-gitlab" aria-hidden="true"></i><span class="label">GitLab</span>
133133
</a>
134134
</li>
135135
{% endif %}
136136

137-
{% if author_data.stackoverflow %}
137+
{% if author.stackoverflow %}
138138
<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">
140140
<i class="fab fa-fw fa-stack-overflow" aria-hidden="true"></i><span class="label">Stack Overflow</span>
141141
</a>
142142
</li>
143143
{% endif %}
144144

145-
{% if author_data.lastfm %}
145+
{% if author.lastfm %}
146146
<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">
148148
<i class="fab fa-fw fa-lastfm-square" aria-hidden="true"></i><span class="label">Last.fm</span>
149149
</a>
150150
</li>
151151
{% endif %}
152152

153-
{% if author_data.dribbble %}
153+
{% if author.dribbble %}
154154
<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">
156156
<i class="fab fa-fw fa-dribbble" aria-hidden="true"></i><span class="label">Dribbble</span>
157157
</a>
158158
</li>
159159
{% endif %}
160160

161-
{% if author_data.pinterest %}
161+
{% if author.pinterest %}
162162
<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">
164164
<i class="fab fa-fw fa-pinterest" aria-hidden="true"></i><span class="label">Pinterest</span>
165165
</a>
166166
</li>
167167
{% endif %}
168168

169-
{% if author_data.foursquare %}
169+
{% if author.foursquare %}
170170
<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">
172172
<i class="fab fa-fw fa-foursquare" aria-hidden="true"></i><span class="label">Foursquare</span>
173173
</a>
174174
</li>
175175
{% endif %}
176176

177-
{% if author_data.steam %}
177+
{% if author.steam %}
178178
<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">
180180
<i class="fab fa-fw fa-steam" aria-hidden="true"></i><span class="label">Steam</span>
181181
</a>
182182
</li>
183183
{% endif %}
184184

185-
{% if author_data.youtube %}
186-
{% if author_data.youtube contains "://" %}
185+
{% if author.youtube %}
186+
{% if author.youtube contains "://" %}
187187
<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">
189189
<i class="fab fa-fw fa-youtube" aria-hidden="true"></i><span class="label">YouTube</span>
190190
</a>
191191
</li>
192-
{% elsif author_data.youtube %}
192+
{% elsif author.youtube %}
193193
<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">
195195
<i class="fab fa-fw fa-youtube" aria-hidden="true"></i><span class="label">YouTube</span>
196196
</a>
197197
</li>
198198
{% endif %}
199199
{% endif %}
200200

201-
{% if author_data.soundcloud %}
201+
{% if author.soundcloud %}
202202
<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">
204204
<i class="fab fa-fw fa-soundcloud" aria-hidden="true"></i><span class="label">SoundCloud</span>
205205
</a>
206206
</li>
207207
{% endif %}
208208

209-
{% if author_data.weibo %}
209+
{% if author.weibo %}
210210
<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">
212212
<i class="fab fa-fw fa-weibo" aria-hidden="true"></i><span class="label">Weibo</span>
213213
</a>
214214
</li>
215215
{% endif %}
216216

217-
{% if author_data.flickr %}
217+
{% if author.flickr %}
218218
<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">
220220
<i class="fab fa-fw fa-flickr" aria-hidden="true"></i><span class="label">Flickr</span>
221221
</a>
222222
</li>
223223
{% endif %}
224224

225-
{% if author_data.codepen %}
225+
{% if author.codepen %}
226226
<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">
228228
<i class="fab fa-fw fa-codepen" aria-hidden="true"></i><span class="label">CodePen</span>
229229
</a>
230230
</li>
231231
{% endif %}
232232

233-
{% if author_data.vine %}
233+
{% if author.vine %}
234234
<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">
236236
<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>
237237
</a>
238238
</li>

0 commit comments

Comments
 (0)