blob: 7cc3a39d750a5973dffef7bc97a05126bf2537db (
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
34
35
36
37
38
39
|
{
latex,
data,
lib,
...
}:
let
experience = data.experience.jobs;
in
{
title = "Experience";
content =
with latex;
for (sort.reverse.byFun (x: with x.date.start; day + 100 * month + 10000 * year) experience) (
item:
with item;
moderncv.cventry (latex.timerange date.start date.end) institution.position
(with institution; href url name)
institution.location
(
if item ? supervisors then
"supervised by "
+ lib.concatStringsSep " \\& " (for supervisors (supervisor: with supervisor; href url name))
else
""
)
(
description
+ lib.optionalString (item ? assets) (
" "
+ cite (
lib.concatStringsSep "," (
for (lib.filter (asset: asset.type == "Writings") assets) (lib.getAttr "id")
)
)
)
)
);
}
|