mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-17 22:32:10 +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
|
DOMAIN = seirdy.one
|
||||||
HUGO_BASEURL = "https://$(DOMAIN)/"
|
HUGO_BASEURL = "https://$(DOMAIN)/"
|
||||||
|
HUGO_FLAGS += --gc
|
||||||
USER = deploy@$(DOMAIN)
|
USER = deploy@$(DOMAIN)
|
||||||
WWW_ROOT = /var/www/$(DOMAIN)
|
WWW_ROOT = /var/www/$(DOMAIN)
|
||||||
GEMINI_ROOT = /srv/gemini/$(DOMAIN)
|
GEMINI_ROOT = /srv/gemini/$(DOMAIN)
|
||||||
|
@ -16,7 +17,7 @@ ZOPFLI_ITERATIONS=500 # max compression
|
||||||
|
|
||||||
.PHONY: hugo
|
.PHONY: hugo
|
||||||
hugo: clean
|
hugo: clean
|
||||||
hugo --gc -b $(HUGO_BASEURL)
|
hugo --gc -b $(HUGO_BASEURL) $(HUGO_FLAGS)
|
||||||
|
|
||||||
# .hintrc-local for linting local files
|
# .hintrc-local for linting local files
|
||||||
# same as regular .hintrc but with a different connector.
|
# same as regular .hintrc but with a different connector.
|
||||||
|
|
Loading…
Reference in a new issue