Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ Thumbs.db
*.un~
.idea/
.hugo_build.lock
.tool-versions
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
HUGO_VERSION_REQUIRED="v0.74.0"
EXTENDED_REQUIRED="extended"

check_hugo_version:
@version=$$(hugo version | head -n 1 | awk '{print $$5}' | sed 's/-.*//'); \
extended=$$(hugo version | head -n 1 | grep -o 'extended'); \
if [ "$$version" != "$(HUGO_VERSION_REQUIRED)" ] || [ "$$extended" != "$(EXTENDED_REQUIRED)" ]; then \
echo "Error: Current Hugo version is $$version. AND is not $(HUGO_VERSION_REQUIRED) extended version."; \
exit 1; \
else \
echo "Hugo version $$version is correct and is extended version."; \
fi

clean:
rm -rf public resources

prepare:
$(CURDIR)/load-docs.sh

serve:
serve: check_hugo_version
hugo server \
--bind 0.0.0.0 \
--buildDrafts \
Expand Down
Loading