diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-21 11:36:24 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-21 17:44:49 +0200 |
| commit | 731a43a83e2e2b61d11c5ac33fe96f92cef41bb5 (patch) | |
| tree | ea32a6c6ae5c036cab7b390543f9cb71e9444095 /src/sections.nix | |
initial commit
Diffstat (limited to 'src/sections.nix')
| -rw-r--r-- | src/sections.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sections.nix b/src/sections.nix new file mode 100644 index 0000000..faed484 --- /dev/null +++ b/src/sections.nix @@ -0,0 +1,15 @@ +{ latex, make, ... }: + +let + sectionTemplate = section: { + inherit (section) title priority; + 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 +] |
