summaryrefslogtreecommitdiff
path: root/html/experience/default.nix
diff options
context:
space:
mode:
authoraristote <quentin.aristote@irif.fr>2025-11-25 09:50:00 +0100
committeraristote <quentin.aristote@irif.fr>2025-11-25 09:56:35 +0100
commita013a5e7ca344db3b6bb9019f14facea7d3b4b8f (patch)
tree361f2a1053d64a90ebbd432cf24ef4ccc1784b28 /html/experience/default.nix
parent7c2605a25f3760de3566709813b96dc459b51cf0 (diff)
experience: split jobs and service
Flake lock file updates: • Updated input 'data': 'github:qaristote/info/521da075910448130c225a1c76d48ab0397e2f94' (2025-09-08) → 'github:qaristote/info/526c88258a5e77101d35664851ae4b5bac170b09' (2025-11-25)
Diffstat (limited to 'html/experience/default.nix')
-rw-r--r--html/experience/default.nix61
1 files changed, 34 insertions, 27 deletions
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)
+ ]
+ )
+ );
}