diff options
| author | aristote <quentin.aristote@irif.fr> | 2025-12-09 17:04:45 +0100 |
|---|---|---|
| committer | aristote <quentin.aristote@irif.fr> | 2025-12-09 17:04:45 +0100 |
| commit | 76728c3faefa6791158824062401973762659fc2 (patch) | |
| tree | 9a01d6ec239f39cd8cb7922b26b7931cc5a27032 /src/experience | |
| parent | 142720d405ceec1d768a56b8c9273621ac967c4c (diff) | |
format
Diffstat (limited to 'src/experience')
| -rw-r--r-- | src/experience/default.nix | 49 |
1 files changed, 29 insertions, 20 deletions
diff --git a/src/experience/default.nix b/src/experience/default.nix index cf4dc5f..cf025bb 100644 --- a/src/experience/default.nix +++ b/src/experience/default.nix @@ -3,29 +3,38 @@ data, lib, ... -}: let +}: +let experience = data.experience.jobs; -in { +in +{ title = "Experience"; priority = 0; - content = with latex; - for - (sort.reverse.byFun (x: with x.date.start; day + 100 * month + 10000 * year) - experience) (item: + 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 + 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")))))); + + 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") + ) + ) + ) + ) + ); } |
