0%

New Blog Workflow

Translation note: This English version was translated by Codex (GPT-5) on 2026-04-20 18:01:46 CST. The source text is the corresponding Chinese post in this repository.

Summary: This article records the full workflow for adding a new post to this blog.

Step 1: Create and edit the Markdown file

You can either run this in Git Bash:

1
hexo new post "xxxx"

Or create a new Markdown file manually in Windows, edit the tags, categories, and other front matter, and then save it.

Step 2: Render the HTML files

Run:

1
hexo clean && hexo g && hexo s

After confirming that everything looks correct on the local localhost:4000 site, run:

1
hexo clean && hexo g && hexo g

The rendered files will be pushed automatically to the gh-pages branch on GitHub.

Step 3: Add a comment and push the source code to the main branch

Run:

1
2
3
git add .
git commit -m "post: article title"
git push origin main