From 8a749d41915a9fc5dc0524a39faf75a24369aa6b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 27 Oct 2022 09:58:33 -0700 Subject: 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. --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'flake.nix') 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; }; -- cgit v1.2.3