From 05f3f6f7ae5a861c6850a6916e7ebf4b286da007 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Thu, 5 Feb 2026 09:48:39 +0100 Subject: [PATCH] feat: setup justfile --- justfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..91527f0 --- /dev/null +++ b/justfile @@ -0,0 +1,26 @@ +# Build website +[group('hugo')] +build: + hugo + +# Setup webserver for site +[group('hugo')] +server: + hugo server -D + +# Create new blog page and enter it with nvim +[group('hugo')] +blog name: + hugo new blog/{{ name }} + nvim content/blog/{{ name }} + +[group('server')] +sync: + sudo systemctl start wg-quick-wg0.service + rsync -rP --delete public/ root@odin:/var/lib/website + sudo systemctl stop wg-quick-wg0.service + +[group('git')] +commit-rebuild: + git add . + git commit -m "Site rebuild $(date +'%d/%m/%Y')"