个人博客源码仓库,站点地址:https://www.catwhiteangel.com
- Hexo 8 静态博客框架
- Butterfly 主题(npm 安装,配置见根目录
_config.butterfly.yml) - KaTeX 数学公式渲染
- GitHub Actions 自动构建与部署,每周定时死链巡检(
lychee)
npm ci
npx hexo server # http://localhost:4000要求 Node 版本见 .nvmrc。
npx hexo new draft "标题" # 新建草稿(source/_drafts/,不进仓库)
npx hexo server --drafts # 预览含草稿
npx hexo publish "标题" # 草稿转正式文章
git add -A && git commit -m "更新文章" && git pushpush 到 main 后由 GitHub Actions 自动构建并发布到服务器,无需本地部署环境。
文章如有错误或过时之处,欢迎提 Issue 指正,也欢迎在站内评论区留言。
本仓库采用双轨授权:
- 文章内容(
source/_posts/及source/下的其他文字内容): CC BY-NC-SA 4.0 ——署名、非商业性使用、相同方式共享。 - 代码与配置(构建脚本、workflow、主题配置等其余部分): MIT。
转载文章请注明出处并附原文链接。
Source repository of my personal blog: https://www.catwhiteangel.com
Posts are written in Chinese.
- Hexo 8 static site generator
- Butterfly theme (installed via npm, configured
in
_config.butterfly.ymlat the repository root) - KaTeX for math rendering
- GitHub Actions for automated build & deployment, plus a weekly scheduled
broken-link check (
lychee)
npm ci
npx hexo server # http://localhost:4000See .nvmrc for the required Node version.
npx hexo new draft "title" # new draft (source/_drafts/, not committed)
npx hexo server --drafts # preview including drafts
npx hexo publish "title" # promote draft to post
git add -A && git commit -m "update posts" && git pushPushing to main triggers an automatic build and deployment via GitHub
Actions — no local deployment environment needed.
If you spot an error or outdated content, feel free to open an Issue or leave a comment on the site.
This repository is dual-licensed:
- Post content (
source/_posts/and other written content undersource/): CC BY-NC-SA 4.0 — Attribution, NonCommercial, ShareAlike. - Code and configuration (build scripts, workflows, theme configuration, everything else): MIT.
When republishing posts, please credit the source and link to the original.