Skip to content

Commit 83c2e99

Browse files
committed
Enhance local build process by enabling draft and future content in site command
Signed-off-by: Lee Calcote <[email protected]>
1 parent 1f50d45 commit 83c2e99

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ setup:
3131
build:
3232
hugo build
3333

34-
## Local: Build and run site locally
35-
site:
36-
hugo serve
34+
## Local: Build and run site locally with draft and future content enabled.
35+
site: check-go
36+
hugo server -D -F
3737

3838
## ------------------------------------------------------------
3939
----REMOTE_BUILDS: Show help for available targets
@@ -50,6 +50,11 @@ prod-build:
5050
## ------------------------------------------------------------
5151
----MAINTENANCE: Show help for available targets
5252

53+
check-go:
54+
@echo "Checking if Go is installed..."
55+
@command -v go > /dev/null || (echo "Go is not installed. Please install it before proceeding."; exit 1)
56+
@echo "Go is installed."
57+
5358
## Update the academy-theme package to latest version
5459
theme-update:
5560
echo "Updating to latest academy-theme..." && \

0 commit comments

Comments
 (0)