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/education.html.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 content/education.html.nix (limited to 'content/education.html.nix') diff --git a/content/education.html.nix b/content/education.html.nix new file mode 100644 index 0000000..e1027e3 --- /dev/null +++ b/content/education.html.nix @@ -0,0 +1,39 @@ +{ html, data, lib, ... }: + +let education = data.education; +in { + title = "Education"; + priority = 30; + body = with html; + dl (for (sort.reverse.byPath [ "date" "start" ] education) (item: + with item; + lines [ + (dt [ + (with institution; "${studyType} @ ${href url name}, ${location}") + br + (with date; small (timerange start end)) + ]) + (dd [ + (lib.optionalString (lib.hasAttr "years" item) (lines + (for (sort.reverse.byPath [ "date" "start" ] years) (year: + with year; + details [ + (summary [ + (with program; + "${studyType} @ ${ + href url (abbr { title = name; } acronym) + }") + br + (with date; small (timerange start end)) + ]) + description + (lines (for courses (category: list: + details [ + (summary "${category} courses") + (lib.concatStringsSep " ยท " (lib.naturalSort list)) + ]))) + ])))) + description + ]) + ])); +} -- cgit v1.2.3