diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-09-17 20:17:50 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-09-17 20:18:54 +0200 |
| commit | 01123862c6bd3ef3c5b9d732f63670d7fb1cfefa (patch) | |
| tree | 1129365241bf2e3313d8077826964f6653a782c7 /src/sections.nix | |
| parent | 360c8a636b8f51c45689cc1518a628383f24420b (diff) | |
reformat
Diffstat (limited to 'src/sections.nix')
| -rw-r--r-- | src/sections.nix | 28 |
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 + ] |
