From 3c5087186914a881cea1b526da2f4fb6b29c459c Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 4 Oct 2023 01:37:17 +0200 Subject: Update Makefile to build future articles --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') 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 -- cgit v1.2.3