diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2022-11-12 11:41:51 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2022-11-12 11:41:51 +0100 |
| commit | dbf48a4665a66dd37150f3886026ecd9bd82967f (patch) | |
| tree | 65bc5167f7c71952cf2ce4072197f6e23e81f98b /html/sections.nix | |
| parent | 056ee77ab2ed3cf488ac9b1b8ac82664948a42a3 (diff) | |
restructure directories
Diffstat (limited to 'html/sections.nix')
| -rw-r--r-- | html/sections.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/html/sections.nix b/html/sections.nix new file mode 100644 index 0000000..2a571b6 --- /dev/null +++ b/html/sections.nix @@ -0,0 +1,18 @@ +{ html, make, ... }: + +let + sectionTemplate = section: { + inherit (section) title priority; + body = html.section { id = section.title; } [ + (html.h1 section.title) + section.body + ]; + }; + makeSection = path: sectionTemplate (make path { }); +in builtins.map makeSection [ + ./basics + ./education + ./experience + # ./languages + ./publications +] |
