xlion-blog/justfile

20 lines
349 B
Makefile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 預設
default: serve
# 本地開發伺服器(含 draft、區網可存取)
serve:
hugo server -D --bind 0.0.0.0
# 建置生產版(清理 + 壓縮)
build:
hugo --gc --minify
# 拉取最新(含 submodule)
pull:
git pull --recurse-submodules
# 完整清理
clean:
rm -rf public
rm -rf resources/_gen
hugo --gc