feat: update project section
This commit is contained in:
25
flake.nix
25
flake.nix
@@ -102,7 +102,7 @@
|
||||
};
|
||||
|
||||
mkProjects = projects:
|
||||
mkSection {
|
||||
mkProjectSection {
|
||||
label = "Projects";
|
||||
children = map (item: {
|
||||
heading = item.name;
|
||||
@@ -118,6 +118,29 @@
|
||||
) projects;
|
||||
};
|
||||
|
||||
mkProjectSection = section:
|
||||
''
|
||||
\section{${section.label}}
|
||||
\begin{itemize}[leftmargin=*]
|
||||
|
||||
${builtins.concatStringsSep "\n" (map mkProjectSectionChild section.children)}
|
||||
|
||||
\end{itemize}
|
||||
'';
|
||||
|
||||
mkProjectSectionChild = child:
|
||||
''
|
||||
\vspace{-2pt}\item
|
||||
\begin{tabular*}{0.97\textwidth}[t]{l@{\extracolsep{\fill}}r}
|
||||
\textbf{${child.heading}} & \textit{${(builtins.head child.children).dates}} \\
|
||||
\end{tabular*}\vspace{${vspace}}
|
||||
|
||||
\begin{itemize}
|
||||
${builtins.concatStringsSep "\n" (map mkItem (builtins.head child.children).items)}
|
||||
\end{itemize}\vspace{${vspace}}
|
||||
|
||||
'';
|
||||
|
||||
mkLeadership = leadership:
|
||||
mkSection {
|
||||
label = "Leadership Experience";
|
||||
|
Reference in New Issue
Block a user