aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-10-27 09:58:33 -0700
committerFranck Cuny <franck@fcuny.net>2022-10-27 09:58:33 -0700
commit8a749d41915a9fc5dc0524a39faf75a24369aa6b (patch)
treeed397926cfa1f1fb782bd83ad8994fc6a5f93fdd /flake.nix
parentref(css): set font family to sans-serif; darker background for code (diff)
downloadfcuny.net-8a749d41915a9fc5dc0524a39faf75a24369aa6b.tar.gz
feat(content): add my resume
Add my resume to the content, with a dedicated CSS. The resume is in org-mode format, and I use `pandoc` to convert it to HTML. This is done when the site is build, and is integrated in the docker image. It is available at /resume.html, but is not listed on the site, that way I can give the URL to who ever is interested in the future. It would be useful to also generate a PDF version of it and store it with other static content.
Diffstat (limited to '')
-rw-r--r--flake.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index a752a6e..dc15e9b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -19,10 +19,12 @@
pname = "fcuny.net";
version = self.lastModifiedDate;
src = ./.;
- buildInputs = [ hugo git ];
+ buildInputs = [ hugo git pandoc ];
buildPhase = ''
mkdir -p $out
- hugo --minify --destination $out
+ ${pkgs.hugo}/bin/hugo --minify --destination $out
+ ${pkgs.pandoc}/bin/pandoc --self-contained --css static/css/resume.css \
+ --from org --to html --output $out/resume.html content/resume.org
'';
dontInstall = true;
};