summaryrefslogtreecommitdiff
path: root/src/education
diff options
context:
space:
mode:
authoraristote <quentin.aristote@irif.fr>2025-12-09 17:04:45 +0100
committeraristote <quentin.aristote@irif.fr>2025-12-09 17:04:45 +0100
commit76728c3faefa6791158824062401973762659fc2 (patch)
tree9a01d6ec239f39cd8cb7922b26b7931cc5a27032 /src/education
parent142720d405ceec1d768a56b8c9273621ac967c4c (diff)
format
Diffstat (limited to 'src/education')
-rw-r--r--src/education/default.nix40
1 files changed, 23 insertions, 17 deletions
diff --git a/src/education/default.nix b/src/education/default.nix
index 2d46730..8d373f8 100644
--- a/src/education/default.nix
+++ b/src/education/default.nix
@@ -3,26 +3,32 @@
data,
lib,
...
-}: let
+}:
+let
education = data.education;
- sortByStartDate =
- latex.sort.reverse.byFun
- (x: with x.date.start; day + 100 * month + 10000 * year);
-in {
+ 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:
+ 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:
+ [
+ (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.cvlistitem "${
+ with program; bold (href url acronym)
+ } (${timerange date.start date.end}). ${program.studyType}. {\\small ${description}}"
+ )
+ )
+ );
}