Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs updating:

serve: module-check ## Boot the development server.
	hugo server --buildDrafts --buildFuture --environment development

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ HUGO_VERSION = $(shell grep ^HUGO_VERSION netlify.toml | tail -n 1 | cut -d
NODE_BIN = node_modules/.bin
NETLIFY_FUNC = $(NODE_BIN)/netlify-lambda

# The segments variable is used to specify which segments to render.
segments ?= all

# The CONTAINER_ENGINE variable is used for specifying the container engine. By default 'docker' is used
# but this can be overridden when calling make, e.g.
# CONTAINER_ENGINE=podman make container-image
Expand Down Expand Up @@ -69,7 +72,7 @@ non-production-build: module-check ## Build the non-production site, which adds
GOMAXPROCS=1 hugo --cleanDestinationDir --enableGitInfo --environment nonprod

serve: module-check ## Boot the development server.
hugo server --buildDrafts --buildFuture --environment development
hugo server --buildDrafts --buildFuture --environment development --renderSegments $(segments)

docker-image:
@echo -e "$(CCRED)**** The use of docker-image is deprecated. Use container-image instead. ****$(CCEND)"
Expand Down Expand Up @@ -118,7 +121,7 @@ container-build: module-check
container-serve: module-check ## Boot the development server using container.
$(CONTAINER_RUN_TTY) --cap-drop=ALL --cap-add=AUDIT_WRITE $(CONTAINER_HUGO_MOUNTS) \
-p 1313:1313 $(CONTAINER_IMAGE) \
hugo server --buildDrafts --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/public --cleanDestinationDir --noBuildLock
hugo server --buildDrafts --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/public --cleanDestinationDir --noBuildLock --renderSegments $(segments)

test-examples:
scripts/test_examples.sh install
Expand Down
8 changes: 8 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -568,3 +568,11 @@ target = "i18n"
[[module.mounts]]
source = "i18n/zh-cn"
target = "i18n"

[segments]
[segments.all]
[[segments.all.includes]]
path = '{/**}'
[segments.en]
[[segments.en.includes]]
lang = 'en'