1
0
Fork 0
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:
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 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.