diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-09-30 21:25:03 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-09-30 21:25:03 +0200 |
| commit | 1036c49e9e3c3ff311a713cccf0054c8c16a9857 (patch) | |
| tree | 8a9495eb0181cef35f690879267120bc3de3defe /html/experience | |
| parent | add6bcd3c1984068e7122fa07a8f3e35ebaf58a9 (diff) | |
format
Diffstat (limited to 'html/experience')
| -rw-r--r-- | html/experience/default.nix | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/html/experience/default.nix b/html/experience/default.nix index abe1109..b7f258b 100644 --- a/html/experience/default.nix +++ b/html/experience/default.nix @@ -1,6 +1,10 @@ -{ html, data, lib, ... }: - -let experience = data.experience; +{ + html, + data, + lib, + ... +}: let + experience = data.experience; in { title = "Experience"; priority = 20; @@ -8,21 +12,22 @@ in { dl (for (sort.reverse.byFun (item: with item.date.start; day + 100 * month + 10000 * year) experience) (item: - with item; [ - (dt [ - (with institution; "${position} @ ${href url name}, ${location}") - br - (small (lib.concatStringsSep " · " - ([ (with date; timerange start end) ] - ++ lib.optional (item ? supervisors) "supervised by ${ - lib.concatStringsSep " " (for supervisors - (supervisor: with supervisor; href url name)) - }" ++ lib.optional (item ? assets) (lib.concatStringsSep " " - (for assets (asset: - with asset; + with item; [ + (dt [ + (with institution; "${position} @ ${href url name}, ${location}") + br + (small (lib.concatStringsSep " · " + ([(with date; timerange start end)] + ++ lib.optional (item ? supervisors) "supervised by ${ + lib.concatStringsSep " " (for supervisors + (supervisor: with supervisor; href url name)) + }" + ++ lib.optional (item ? assets) (lib.concatStringsSep " " + (for assets (asset: + with asset; href "#${type}#${id}" "${icon "las la-paperclip"} ${name}")))))) - ]) - (dd description) - ])); + ]) + (dd description) + ])); } |
