blob: b2e6289d6ffe2bff93121393153568b588e786bc (
plain)
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
|
{
latex,
data,
lib,
...
}:
let
education = data.education;
sortByStartDate = latex.sort.reverse.byFun (x: with x.date.start; day + 100 * month + 10000 * year);
in
{
title = "Education";
content =
with latex;
for (sortByStartDate education) (
item:
with item;
[
(moderncv.cventry (latex.timerange date.start date.end) studyType (
with institution; href url name
) institution.location "" description)
]
++ lib.optional (item ? "years") (
for (sortByStartDate years) (
year:
with year;
moderncv.cvlistitem "${
with program; bold (href url acronym)
} (${timerange date.start date.end}). ${program.studyType}. {\\small ${description}}"
)
)
);
}
|