summaryrefslogtreecommitdiff
path: root/html/experience
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2022-11-12 11:41:51 +0100
committerQuentin Aristote <quentin@aristote.fr>2022-11-12 11:41:51 +0100
commitdbf48a4665a66dd37150f3886026ecd9bd82967f (patch)
tree65bc5167f7c71952cf2ce4072197f6e23e81f98b /html/experience
parent056ee77ab2ed3cf488ac9b1b8ac82664948a42a3 (diff)
restructure directories
Diffstat (limited to 'html/experience')
-rw-r--r--html/experience/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/html/experience/default.nix b/html/experience/default.nix
new file mode 100644
index 0000000..8637802
--- /dev/null
+++ b/html/experience/default.nix
@@ -0,0 +1,26 @@
+{ html, data, lib, ... }:
+
+let experience = data.experience;
+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 "#Publications#${id}" "${icon "las la-paperclip"} ${name}"))))))
+ ])
+ (dd description)
+ ]));
+}