f8e94af3cdc767142a24d85e01eb868cde990097
Build and Deploy Blog / build (push) Successful in 16s
之前 paths-ignore 只列 README.md,加上 README.en.md 后 docs-only push 会触发一次冗余的 hugo build+rsync。改成 README*.md 覆盖所有 语言变体,未来加 README.ja.md 等也自动适用。 不能用 '**/*.md':content/posts/*.md 也会命中,新博客文章发不上去。
Zhengchen's Notebook
简体中文 | English
Personal blog source, built on Hugo + hugo-theme-stack.
Live at https://blog.zhengchentao.win/.
Local development
# First-time clone: pull submodules
git clone --recurse-submodules <repo>
# Or, if already cloned:
git submodule update --init --recursive
# Local preview (includes drafts)
hugo server -D
# Production build
hugo --gc --minify
Requires Hugo Extended ≥ 0.161.1.
New post
hugo new posts/2026-05-06-my-post.md
The date in the filename is only for local sorting — the actual publish time
comes from the date field in front matter.
Deployment
Push-to-deploy via Gitea Actions: every push to main triggers a build, then
rsync ships public/ to a directory bind-mounted into a long-running nginx
container on the NAS. Filesystem-level sync, no restart needed. Compose file
for the nginx container lives at deploy/docker-compose.yml.
License
- Post content: CC BY-NC-SA 4.0
- Theme: see
themes/stack/for its own license
Description
Languages
Python
90.8%
SCSS
9.2%