diff options
Diffstat (limited to 'html/education/default.nix')
| -rw-r--r-- | html/education/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/html/education/default.nix b/html/education/default.nix new file mode 100644 index 0000000..e1027e3 --- /dev/null +++ b/html/education/default.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 + ]) + ])); +} |
