diff --git a/Makefile b/Makefile index bf00a36..4361867 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,13 @@ all: rm -rf public/* hugo --debug --destination public +branches: + for branch in $(shell git branch --list "post-*"); do \ + git checkout $$branch; \ + hugo --debug --baseUrl "https://blog.bouah.net/_drafts/$$branch" \ + --buildDrafts --buildFuture --destination drafts/$$branch; \ + done + drafts: hugo --debug --baseUrl "https://blog.bouah.net/_drafts" \ --buildDrafts --buildFuture --destination drafts @@ -14,6 +21,6 @@ drafts: serve: hugo serve --debug --buildDrafts --buildFuture -.PHONY: drafts +.PHONY: branches drafts # vim:ft=make #