1
0
Fork 0
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:
Rohan Kumar 2021-01-12 15:28:59 -08:00
parent 38261d4ebe
commit 166e05692a
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -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.