diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-21 11:36:24 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-21 17:44:49 +0200 |
| commit | 731a43a83e2e2b61d11c5ac33fe96f92cef41bb5 (patch) | |
| tree | ea32a6c6ae5c036cab7b390543f9cb71e9444095 /src/education/default.nix | |
initial commit
Diffstat (limited to 'src/education/default.nix')
| -rw-r--r-- | src/education/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/education/default.nix b/src/education/default.nix new file mode 100644 index 0000000..5b79323 --- /dev/null +++ b/src/education/default.nix @@ -0,0 +1,21 @@ +{ latex, data, lib, ... }: + +let + education = data.education; + sortByStartDate = latex.sort.reverse.byFun + (x: with x.date.start; day + 100 * month + 10000 * year); +in { + title = "Education"; + priority = 10; + content = with latex; + for (sortByStartDate education) (item: + with item; + [ + (moderncv.cventry (latex.timerange date.start date.end) studyType + (with institution; href url name) institution.location "" description) + ] ++ lib.optional (item ? "years") (for (sortByStartDate years) (year: + with year; + moderncv.cvlistitem "${with program; bold (href url acronym)} (${ + timerange date.start date.end + }). ${program.studyType}. {\\small ${description}}"))); +} |
