diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-21 17:50:43 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-23 18:29:57 +0200 |
| commit | baea04747697ad5039139ef44bca7b3965147696 (patch) | |
| tree | 6da0d87642c19120d913b66b1734d3de6fbb385d /html/experience | |
| parent | 5752f0a1017f33c78428a915d3bcf2ccd80f3e79 (diff) | |
update info api
Diffstat (limited to 'html/experience')
| -rw-r--r-- | html/experience/default.nix | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/html/experience/default.nix b/html/experience/default.nix index b89396b..abe1109 100644 --- a/html/experience/default.nix +++ b/html/experience/default.nix @@ -5,22 +5,24 @@ in { title = "Experience"; priority = 20; body = with html; - dl (for (sort.reverse.byPath [ "date" "start" ] experience) (item: - with item; - lines [ - (dt [ - (with institution; "${position} @ ${href url name}, ${location}") - br - (small (lib.concatStringsSep " · " - ([ (with date; timerange start end) ] - ++ lib.optional (lib.hasAttr "supervisors" item) - "supervised by ${ - lib.concatStringsSep " " - (for supervisors (supervisor: with supervisor; href url name)) - }" ++ lib.optional (lib.hasAttr "assets" item) - (lib.concatStringsSep " " (for assets - (asset: with asset; href "#${type}#${id}" "${icon "las la-paperclip"} ${name}")))))) - ]) - (dd description) - ])); + 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; + href "#${type}#${id}" + "${icon "las la-paperclip"} ${name}")))))) + ]) + (dd description) + ])); } |
