# see available `just` commands list: just --list # create scaffolding & hugo.toml init: hugo new site . --force # serve website on http://localhost:1313 serve: hugo serve -D # create new post post MDFILE: mkdir -p content/posts hugo new content 'content/posts/{{ MDFILE }}' || true # deploy to SERVER at DIR using tar/ssh/scp deploy SERVER='chummie' DIR='/var/www/seandugre.com': hugo tar cfz public.tgz public/ scp public.tgz {{ SERVER }}:{{ DIR }} ssh {{ SERVER }} 'cd {{ DIR }} && tar xfz public.tgz' # deletes public folder purge: rm -rf public/*