blog/makefile

17 lines
328 B
Makefile

.PHONY: docker-build serve write
write: serve
new-post:
./hugo new posts/$${TITLE:new_post}.md
hugo:
go get -u --tags extended -v github.com/gohugoio/hugo
go install --tags extended -v github.com/gohugoio/hugo
docker-build:
docker build --build-arg='VERSION=0.59.1' -t hugo .
serve:
./hugo server -D -w --bind 0.0.0.0