wiki/justfile
2026-02-05 10:29:09 +01:00

26 lines
525 B
Makefile

# 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/wiki
sudo systemctl stop wg-quick-wg0.service
[group('git')]
commit-rebuild:
git add .
git commit -m "Site rebuild $(date +'%d/%m/%Y')"