summaryrefslogtreecommitdiff
path: root/src/sections.nix
diff options
context:
space:
mode:
Diffstat (limited to 'src/sections.nix')
-rw-r--r--src/sections.nix15
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
+]