diff --git a/.gitignore b/.gitignore index fc36f1b..3abf8d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -out/ +public/ +static/*.pdf diff --git a/flake.nix b/flake.nix index c7e1b73..c213426 100644 --- a/flake.nix +++ b/flake.nix @@ -27,8 +27,9 @@ with pkgs; mkShell { buildInputs = [ - typst jujutsu + typst + zola ]; shellHook = '' export FONTCONFIG_FILE="${fontsConf}" diff --git a/justfile b/justfile index 6b92033..b49136c 100644 --- a/justfile +++ b/justfile @@ -1,5 +1,20 @@ -compile: - typst compile cv.typ out/cv.pdf +cv := "./cv.typ" +cv_out := "./static/resume.pdf" + +typst-compile: + typst compile {{cv}} {{cv_out}} + +typst-watch: + typst --color=never watch {{cv}} {{cv_out}} + +zola-build: typst-compile + zola build + +zola-serve: + zola serve + +build: zola-build + +[parallel] +watch: zola-serve typst-watch -watch: - typst watch cv.typ out/cv.pdf diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..6e2e283 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,17 @@ + + +
+ +