From afa9ce64287f21cbe465673a3c710a6893402bf4 Mon Sep 17 00:00:00 2001 From: Alex van de Sandt Date: Fri, 17 Jul 2026 19:06:51 -0500 Subject: [PATCH] Add a zola site --- .gitignore | 3 ++- flake.nix | 3 ++- justfile | 23 +++++++++++++++++++---- templates/base.html | 17 +++++++++++++++++ templates/index.html | 7 +++++++ zola.toml | 16 ++++++++++++++++ 6 files changed, 63 insertions(+), 6 deletions(-) create mode 100644 templates/base.html create mode 100644 templates/index.html create mode 100644 zola.toml 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 @@ + + + + + Alex van de Sandt + + + +
+
+ {% block content %} + {% endblock content %} +
+
+ + + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..898cc50 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,7 @@ +{% extends "base.html" %} + +{% block content %} +

Hello!

+ +There's not much here yet. +{% endblock content %} diff --git a/zola.toml b/zola.toml new file mode 100644 index 0000000..61da9f6 --- /dev/null +++ b/zola.toml @@ -0,0 +1,16 @@ +# The URL the site will be built for +base_url = "https://alexvds.com" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# Whether to build a search index to be used later on by a JavaScript library +build_search_index = false + +[markdown] + +[markdown.highlighting] +theme = "catppuccin-mocha" + +[extra] +# Put all your custom variables here -- 2.51.2