diff options
| -rw-r--r-- | flake.lock | 6 | ||||
| -rw-r--r-- | html/experience/default.nix | 61 |
2 files changed, 37 insertions, 30 deletions
@@ -7,11 +7,11 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1757319452, - "narHash": "sha256-Sp2DlqnXGRc6bOwUPhoh2RH8LUlFcPYZ4hVvEMqp+/U=", + "lastModified": 1764060519, + "narHash": "sha256-HZXR3tH4yvVdxUCqCEuLb/ETPzX9dQ00rfWew88DL0c=", "owner": "qaristote", "repo": "info", - "rev": "521da075910448130c225a1c76d48ab0397e2f94", + "rev": "526c88258a5e77101d35664851ae4b5bac170b09", "type": "github" }, "original": { diff --git a/html/experience/default.nix b/html/experience/default.nix index 9fdc219..56f0992 100644 --- a/html/experience/default.nix +++ b/html/experience/default.nix @@ -3,34 +3,41 @@ data, lib, ... -}: let +}: +let experience = data.experience; -in { +in +{ title = "Experience"; priority = 20; - body = with html; - 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) - ])); + body = + with html; + dl ( + for + (sort.reverse.byFun (item: with item.date.start; day + 100 * month + 10000 * year) experience.jobs) + ( + 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) + ] + ) + ); } |
