From 731a43a83e2e2b61d11c5ac33fe96f92cef41bb5 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Mon, 21 Aug 2023 11:36:24 +0200 Subject: initial commit --- src/education/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/education/default.nix (limited to 'src/education/default.nix') 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}}"))); +} -- cgit v1.2.3