feat: setup justfile

This commit is contained in:
CronyAkatsuki 2026-02-05 09:48:39 +01:00
parent cf88a7e9da
commit 05f3f6f7ae

26
justfile Normal file
View file

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