mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Makefile: allow setting custom Hugo flags
This commit is contained in:
parent
38261d4ebe
commit
166e05692a
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -3,6 +3,7 @@ DEVSERVER_URL="http://localhost:1313/"
|
|||
|
||||
DOMAIN = seirdy.one
|
||||
HUGO_BASEURL = "https://$(DOMAIN)/"
|
||||
HUGO_FLAGS += --gc
|
||||
USER = deploy@$(DOMAIN)
|
||||
WWW_ROOT = /var/www/$(DOMAIN)
|
||||
GEMINI_ROOT = /srv/gemini/$(DOMAIN)
|
||||
|
@ -16,7 +17,7 @@ ZOPFLI_ITERATIONS=500 # max compression
|
|||
|
||||
.PHONY: hugo
|
||||
hugo: clean
|
||||
hugo --gc -b $(HUGO_BASEURL)
|
||||
hugo --gc -b $(HUGO_BASEURL) $(HUGO_FLAGS)
|
||||
|
||||
# .hintrc-local for linting local files
|
||||
# same as regular .hintrc but with a different connector.
|
||||
|
|
Loading…
Reference in a new issue