diff options
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 + ] |
