summaryrefslogtreecommitdiff
path: root/src/sections.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/sections.nix
parent360c8a636b8f51c45689cc1518a628383f24420b (diff)
reformat
Diffstat (limited to 'src/sections.nix')
-rw-r--r--src/sections.nix28
1 files changed, 17 insertions, 11 deletions
diff --git a/src/sections.nix b/src/sections.nix
index faed484..2778beb 100644
--- a/src/sections.nix
+++ b/src/sections.nix
@@ -1,15 +1,21 @@
-{ latex, make, ... }:
-
-let
+{
+ latex,
+ make,
+ ...
+}: let
sectionTemplate = section: {
inherit (section) title priority;
- extraHeader = if section ? extraHeader then section.extraHeader else "";
+ extraHeader =
+ if section ? extraHeader
+ then section.extraHeader
+ else "";
content = latex.section section.title section.content;
};
- makeSection = path: sectionTemplate (make path { });
-in builtins.map makeSection [
- ./experience
- ./education
- ./languages
- ./publications
-]
+ makeSection = path: sectionTemplate (make path {});
+in
+ builtins.map makeSection [
+ ./experience
+ ./education
+ ./languages
+ ./publications
+ ]