File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 31
31
build :
32
32
hugo build
33
33
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
37
37
38
38
# # ------------------------------------------------------------
39
39
----REMOTE_BUILDS : Show help for available targets
@@ -50,6 +50,11 @@ prod-build:
50
50
# # ------------------------------------------------------------
51
51
----MAINTENANCE : Show help for available targets
52
52
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
+
53
58
# # Update the academy-theme package to latest version
54
59
theme-update :
55
60
echo " Updating to latest academy-theme..." && \
You can’t perform that action at this time.
0 commit comments