blog/Makefile

10 lines
No EOL
240 B
Makefile

.PHONY: deploy
deploy:
git add .
git ci -m "UPD $(shell date '+%Y-%m-%d')"
git push
hugo --gc && rsync -avz --delete public/ neonxp@neonxp.ru:/var/www/neonxp.ru
post:
hugo new content posts/$(shell date '+%Y-%m-%d')-$(name)/index.md