A Hexo blog powered by Butterfly theme, deployed on GitHub Pages.
| Branch | Content | Purpose |
|---|---|---|
master |
Source code (Markdown + Hexo config) | Edit posts, auto-deploys on push |
gh-pages |
Compiled HTML | Auto-generated, don't edit manually |
- Edit
source/_posts/*.mdonmasterbranch - Push → GitHub Actions builds automatically
- Deploys to
gh-pages - GitHub Pages serves from
gh-pages
npm install # Install dependencies
npx hexo server # Preview at http://localhost:4000
npx hexo generate # Generate static filesgit checkout master # Switch to source branch
git add . && git commit -m "..." && git push # Push changes- Don't edit files in
public/directly (auto-generated) - Theme files are in
themes/butterfly/ - Add images to
source/uploads/or use external URLs _config.ymlis auto-generated from_hexo_config.ymlduring build