From 01123862c6bd3ef3c5b9d732f63670d7fb1cfefa Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 17 Sep 2023 20:17:50 +0200 Subject: reformat --- src/experience/default.nix | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'src/experience') 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")))))); -- cgit v1.2.3