-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcv.html
More file actions
222 lines (213 loc) · 10.7 KB
/
cv.html
File metadata and controls
222 lines (213 loc) · 10.7 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
---
layout: default
title: CV 🎓
permalink: /cv
---
<h1>Curriculum Vitae</h1>
<!-- Set up date formats -->
{%- assign yearFull = site.minima.date_format | default: "%Y" -%} {%- assign
yearShort = site.minima.date_format | default: "%y" -%}
<!-- Single table for entire CV -->
<table class="clean">
<!-- Main CV -->
{%- assign experienceTypes = "Employment, Education, Teaching, Awards, Grants, Service & Community, Invited talks" |
split: ", "-%}
{%- for experienceType in experienceTypes -%}
{%- assign experienceSet = site.data.CV | where:"include","TRUE" | where:"type", experienceType | sort: "dateStart" |
reverse -%}
{%- if experienceSet.size > 0 -%}
<tr>
<td colspan="2">
<h2 class="section">{{ experienceType }}</h2>
</td>
</tr>
{%- for experience in experienceSet -%}
<tr>
{%- capture startDate -%}{{ experience.dateStart | date: yearFull }}{%-
endcapture -%} {%- capture endDate -%}{{ experience.dateEnd | date: yearFull
}}{%- endcapture -%}
<td class="left light small">
{{ experience.dateStart | date: yearFull }} {%- if startDate != endDate
-%} {%- if experience.dateEnd -%} –{{ experience.dateEnd | date: yearShort
}} {%- else -%} {{ "→" }} {%- endif -%} {%- endif -%}
</td>
<td class="row">
{% if experience.position %}<strong>{{ experience.position }}</strong>{% if
experience.focus %} in {{ experience.focus | markdownify | remove: '<p>' | remove: '</p>' }}{% endif %} at
{%endif%} {% if experience.institutionURL %}<a href="{{ experience.institutionURL }}">{%endif%}
<strong>{{ experience.institutionFull }}</strong>{% if
experience.institutionURL %}</a>{%endif%}{% if experience.institutionShort %}
<span class="smallCaps">({{ experience.institutionShort }})</span>{% endif
%}{% if experience.notes %}
<span class="light note">
{{ experience.notes | markdownify | remove: '<p>' | remove: '</p>' }}
</span>
{%endif%}
</td>
</tr>
{%- endfor -%} {%- endif -%} {%- endfor -%}
<!-- Mentees -->
{%- assign menteeSet = site.data.mentees | sort: "dateStart" | reverse -%} {%-
if menteeSet.size > 0 -%}
<tr>
<td colspan="2">
<h2 class="section">Mentees <span class="light bottom small noPrint right"><a
href="https://github.com/markwhiting/Whiting.me/blob/gh-pages/_data/mentees.yml">Submit an
update.</a></span></h2>
</td>
</tr>
{%- assign institutions = menteeSet | group_by:"institution" -%} {%- for institution in institutions -%}
<tr>
{%- assign startOrderedMentees = institution.items | sort: "dateStart" -%}{%- capture startDate -%} {{
startOrderedMentees.first.dateStart |
date: yearFull }} {%- endcapture -%}{%- assign endOrderedMentees =
institution.items | sort: "dateEnd" -%}{%- capture endDate -%} {{
endOrderedMentees.last.dateEnd | date: yearFull }}{%- endcapture -%}
<td class="left light small">
{{ startDate }}{% if startDate != endDate %}{% if endDate != "" %}–{{
endDate | slice: -2, 2 }}{% else %}→{% endif %}{% endif %}
</td>
<td class="row">
<strong>{% if institution.name.size > 4 %}{{ institution.name }}{% else %}<span class="smallCaps">{{
institution.name }}</span>{% endif %}</strong>
<p class="light note">
{%- for mentee in institution.items -%}{% if forloop.first == false and
forloop.last == false %},{% elsif forloop.first == false and
forloop.last %}, and{% endif %} {% if mentee.URL %}<a href="{{ mentee.URL }}">{%endif%}{{ mentee.name }}{% if
mentee.URL %}</a>{% endif %}{% if mentee.notes %} ({% if mentee.notes.size > 4 %}{{
mentee.notes }}{% else %}<span class="smallCaps">{{ mentee.notes }}</span>{% endif %}){% endif %}{% endfor %}
</p>
</td>
</tr>
{%- endfor -%}{%- endif -%}
<!-- Patents -->
<tr>
<td colspan="2">
<h2 class="section">Patents</h2>
</td>
</tr>
{%- assign years = site.data.publications | sort: "year" | reverse | map: "year" | uniq -%}
{%- for focal_year in years -%}
{%- assign yearly_pubs = site.data.publications | where:"year", focal_year | where: "type", "patent" | uniq -%}
{%- for pub in yearly_pubs -%}
<tr>
{% if pub.year != "Upcoming" %}
<td class="left light smallCaps noPrint">{%- if forloop.first -%}{{pub.year}}{% endif %}</td>
{% else %}
<td class="left light smallCaps">{%- if forloop.first -%}{{pub.year}}{% endif %}</td>
{% endif %}
<td colspan="2">
<strong class=""><span class="noPrint"></span>{%- if pub.url-%}<a href="{{pub.url}}">{% elsif pub.doi %}<a
href="https://doi.org/{{pub.doi}}">{% endif %}{{pub.title}}{%- if pub.url or pub.doi-%}</a>{% endif
%}</strong>
<p class="light note">
{%- assign authors = pub.authors | replace: " and ", "; " | split: ";" -%}
{%- for author in authors -%}
{%- if forloop.first -%}{% elsif forloop.last %} & {% else %}, {% endif %}
{%- if author contains "Whiting" and author contains "Mark" -%}<strong>{% endif %}{{author | split: "," |
reverse | array_to_sentence_string:" "}}{%- if author contains "Whiting" and author contains "Mark"
-%}</strong>{% endif %}
{%- if forloop.last -%}<br>{% endif %}
{%- endfor -%}
{%- if pub.venue -%}<strong>{{pub.venue}}</strong>{% endif %}{%- if pub.venue and pub.year -%}, {% endif %}{%-
if pub.year and pub.year != "Upcoming" -%}{{pub.year}}{%- if pub.doi -%}, {% endif %}{% endif %}
{%- if pub.doi -%} <a href="https://doi.org/{{pub.doi}}">{{pub.doi}}</a> {% endif %}
<strong>{{pub.award}}</strong>
</p>
</td>
</tr>
{%- endfor -%}
{%- endfor -%}
<!-- Working papers -->
<tr>
<td colspan="2">
<h2 class="section">Working papers</h2>
</td>
</tr>
{%- assign years = site.data.publications | sort: "year" | reverse | map: "year" | uniq -%}
{%- for focal_year in years -%}
{%- if focal_year == nil -%}{%- continue -%}{%- endif -%}
{%- assign yearly_pubs = site.data.publications | where:"year", focal_year | where: "type", "unpublished" | uniq -%}
{%- for pub in yearly_pubs -%}
<tr>
{% if pub.year != "Upcoming" %}
<td class="left light smallCaps noPrint">{%- if forloop.first -%}{{pub.year}}{% endif %}</td>
{% else %}
<td class="left light smallCaps">{%- if forloop.first -%}{{pub.year}}{% endif %}</td>
{% endif %}
<td colspan="2">
{% if pub.doi %} <div class='altmetric-embed right noPrint altmetric' data-badge-type='donut'
data-link-target='_blank' data-hide-no-mentions='true' data-doi="{{pub.doi}}"></div>{% endif %}
<strong class=""><span class="noPrint">{%- if pub.award -%}{%- if pub.award contains "Best" -%}🏆{% else %}🏅{%
endif %}{% endif %}</span>{%- if pub.url-%}<a href="{{pub.url}}">{% elsif pub.doi %}<a
href="https://doi.org/{{pub.doi}}">{% endif %}{{pub.title}}{%- if pub.url or pub.doi-%}</a>{% endif
%}</strong>
<p class="light note">
{%- assign authors = pub.authors | replace: " and ", "; " | split: ";" -%}
{%- for author in authors -%}
{%- if forloop.first -%}{% elsif forloop.last %} & {% else %}, {% endif %}
{%- if author contains "Whiting" and author contains "Mark" -%}<strong>{% endif %}{{author | split: "," |
reverse | array_to_sentence_string:" "}}{%- if author contains "Whiting" and author contains "Mark"
-%}</strong>{% endif %}
{%- if forloop.last -%}<br>{% endif %}
{%- endfor -%}
{%- if pub.venue -%}<strong>{{pub.venue}}</strong>{% endif %}{%- if pub.venue and pub.year -%}, {% endif %}{%-
if pub.year and pub.year != "Upcoming" -%}{{pub.year}}{%- if pub.doi -%}, {% endif %}{% endif %}
{% if pub.doi %} <a href="https://doi.org/{{pub.doi}}">{{pub.doi}}</a> {% endif %}
<strong>{{pub.award}}</strong>
</p>
</td>
</tr>
{%- endfor -%}
{%- endfor -%}
<!-- Publications -->
<tr>
<td colspan="2">
<h2 class="section">
<a class="noPrint" href="https://scholar.google.com/citations?user=9BeIX-0AAAAJ">Publications</a><span
class="onlyPrint">Publications</span> <span class="light bottom small right"><span class="noPrint"><a
href="/bib">BibTeX</a> | </span><span itemscope itemtype="https://schema.org/Person">ORCiD: <a
itemprop="sameAs" content="https://orcid.org/0000-0002-6395-7833"
href="https://orcid.org/0000-0002-6395-7833" target="orcid.widget" rel="me noopener noreferrer"
style="vertical-align:top;">0000-0002-6395-7833</a></span></span>
</h2>
</td>
</tr>
{%- assign years = site.data.publications | sort: "year" | reverse | map: "year" | uniq -%}
{%- for focal_year in years -%}
{%- assign yearly_pubs = site.data.publications | where:"year", focal_year | where_exp:"pub", "pub.type != 'unpublished'" |
where_exp:"pub",
"pub.type != 'patent'" | uniq -%}
{%- for pub in yearly_pubs -%}
<tr>
{% if pub.year != "Upcoming" %}
<td class="left light smallCaps noPrint">{%- if forloop.first -%}{{pub.year}}{% endif %}</td>
{% else %}
<td class="left light smallCaps">{%- if forloop.first -%}{{pub.year}}{% endif %}</td>
{% endif %}
<td colspan="2">
{% if pub.doi %} <div class='altmetric-embed right noPrint altmetric' data-badge-type='donut'
data-link-target='_blank' data-hide-no-mentions='true' data-doi="{{pub.doi}}"></div>{% endif %}
<strong class=""><span class="noPrint">{%- if pub.award -%}{%- if pub.award contains "Best" -%}🏆{% else %}🏅{%
endif %}{% endif %}</span>{%- if pub.url-%}<a href="{{pub.url}}">{% elsif pub.doi %}<a
href="https://doi.org/{{pub.doi}}">{% endif %}{{pub.title}}{%- if pub.url or pub.doi-%}</a>{% endif
%}</strong>
<p class="light note">
{%- assign authors = pub.authors | replace: " and ", "; " | split: ";" -%}
{%- for author in authors -%}
{%- if forloop.first -%}{% elsif forloop.last %} & {% else %}, {% endif %}
{%- if author contains "Whiting" and author contains "Mark" -%}<strong>{% endif %}{{author | split: "," |
reverse | array_to_sentence_string:" "}}{%- if author contains "Whiting" and author contains "Mark"
-%}</strong>{% endif %}
{%- if forloop.last -%}<br>{% endif %}
{%- endfor -%}
{%- if pub.venue -%}<strong>{{pub.venue}}</strong>{% endif %}{%- if pub.venue and pub.year -%}, {% endif %}{%-
if pub.year and pub.year != "Upcoming" -%}{{pub.year}}{%- if pub.doi -%}, {% endif %}{% endif %}
{%- if pub.doi -%} <a href="https://doi.org/{{pub.doi}}">{{pub.doi}}</a> {% endif %}
<strong>{{pub.award}}</strong>
</p>
</td>
</tr>
{%- endfor -%}
{%- endfor -%}
</table>