From 056ee77ab2ed3cf488ac9b1b8ac82664948a42a3 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Fri, 11 Nov 2022 18:38:28 +0100 Subject: initial ocommit --- content/experience.html.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 content/experience.html.nix (limited to 'content/experience.html.nix') diff --git a/content/experience.html.nix b/content/experience.html.nix new file mode 100644 index 0000000..8637802 --- /dev/null +++ b/content/experience.html.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) + ])); +} -- cgit v1.2.3