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')"