From dbf48a4665a66dd37150f3886026ecd9bd82967f Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sat, 12 Nov 2022 11:41:51 +0100 Subject: restructure directories --- html/sections.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 html/sections.nix (limited to 'html/sections.nix') 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 +] -- cgit v1.2.3