summaryrefslogtreecommitdiff
path: root/src/education/default.nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2023-09-17 20:17:50 +0200
committerquentin@aristote.fr <quentin@aristote.fr>2023-09-17 20:18:54 +0200
commit01123862c6bd3ef3c5b9d732f63670d7fb1cfefa (patch)
tree1129365241bf2e3313d8077826964f6653a782c7 /src/education/default.nix
parent360c8a636b8f51c45689cc1518a628383f24420b (diff)
reformat
Diffstat (limited to 'src/education/default.nix')
-rw-r--r--src/education/default.nix31
1 files changed, 19 insertions, 12 deletions
diff --git a/src/education/default.nix b/src/education/default.nix
index 5b79323..2d46730 100644
--- a/src/education/default.nix
+++ b/src/education/default.nix
@@ -1,8 +1,12 @@
-{ latex, data, lib, ... }:
-
-let
+{
+ latex,
+ data,
+ lib,
+ ...
+}: let
education = data.education;
- sortByStartDate = latex.sort.reverse.byFun
+ sortByStartDate =
+ latex.sort.reverse.byFun
(x: with x.date.start; day + 100 * month + 10000 * year);
in {
title = "Education";
@@ -10,12 +14,15 @@ in {
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}}")));
+ [
+ (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}}")));
}