aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJulien Dessaux2023-10-04 01:37:17 +0200
committerJulien Dessaux2023-10-04 01:37:17 +0200
commit3c5087186914a881cea1b526da2f4fb6b29c459c (patch)
treeb44a8e19d38e60f1d36a64574ad1cc8f3df01b9e /GNUmakefile
parentAdded installing nixos on a vps blog article (diff)
downloadwww-3c5087186914a881cea1b526da2f4fb6b29c459c.tar.gz
www-3c5087186914a881cea1b526da2f4fb6b29c459c.tar.bz2
www-3c5087186914a881cea1b526da2f4fb6b29c459c.zip
Update Makefile to build future articles
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 0ec97b3..8ca7765 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -12,7 +12,7 @@ REVISION=$(shell git rev-parse HEAD)
.PHONY: build
build: ## make build # builds an optimized version of the website in $(DESTDIR)
@echo "----- Generating site -----"
- hugo --gc --minify --cleanDestinationDir -d $(DESTDIR) --cacheDir $(CACHEDIR)
+ hugo --gc --minify --cleanDestinationDir -d $(DESTDIR) --cacheDir $(CACHEDIR) --buildFuture
cp public/index.json search/
cp public/search/index.html search/
(cd search && CGO_ENABLED=0 go build -ldflags '-s -w -extldflags "-static"' ./search.go)
@@ -43,6 +43,6 @@ push: ## make push # push the built images to quay.io
.PHONY: serve
serve: ## make serve # hugo web server development mode
- hugo serve --disableFastRender --noHTTPCache --cacheDir $(CACHEDIR) --bind 0.0.0.0 --port 1313 -b http://$(HOSTNAME):1313/
+ hugo serve --disableFastRender --noHTTPCache --cacheDir $(CACHEDIR) --bind 0.0.0.0 --port 1313 -b http://$(HOSTNAME):1313/ --buildFuture --navigateToChanged
.DEFAULT_GOAL := help