diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-09-17 20:17:50 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-09-17 20:18:54 +0200 |
| commit | 01123862c6bd3ef3c5b9d732f63670d7fb1cfefa (patch) | |
| tree | 1129365241bf2e3313d8077826964f6653a782c7 /src/experience/default.nix | |
| parent | 360c8a636b8f51c45689cc1518a628383f24420b (diff) | |
reformat
Diffstat (limited to 'src/experience/default.nix')
| -rw-r--r-- | src/experience/default.nix | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/experience/default.nix b/src/experience/default.nix index 500fd9e..a095d3d 100644 --- a/src/experience/default.nix +++ b/src/experience/default.nix @@ -1,6 +1,10 @@ -{ latex, data, lib, ... }: - -let experience = data.experience; +{ + latex, + data, + lib, + ... +}: let + experience = data.experience; in { title = "Experience"; priority = 0; @@ -8,14 +12,19 @@ in { for (sort.reverse.byFun (x: with x.date.start; day + 100 * month + 10000 * year) experience) (item: - with 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 + 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 == "Publications") assets) (lib.getAttr "id")))))); |
