-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcv.html
112 lines (107 loc) · 6.11 KB
/
cv.html
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
---
layout: default
title: CV 🎓
permalink: /cv
---
<!-- 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: "startDate" -%}{%- capture startDate -%} {{ startOrderedMentees.first.dateStart |
date: yearFull }} {%- endcapture -%}{%- assign endOrderedMentees =
institution.items | sort: "endDate" -%}{%- capture endDate -%} {{
startOrderedMentees.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 -%}
<!-- 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 -%}
{%- for pub in yearly_pubs -%}
<tr>
<td class="left light smallCaps noPrint">{%- if forloop.first -%}{{pub.year}}{% endif %}</td>
<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 -%}{{pub.year}}{% 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>