仓库:blog · 语言 JavaScript · 更新于 2026-10-20

本站源码(Hexo + Butterfly)

这是什么

这个博客站点的全部源码。基于 Hexo 8.1.2 + Butterfly 5.7.0 的静态博客,push 到 main 由 GitHub Actions 自动构建并部署到 GitHub Pages,绑定自定义域名 tatzhao.top。

技术栈

组件 说明
Hexo 8.1.2 静态站点生成器
Butterfly 5.7.0 主题:深色模式、本地搜索、pjax、timeline 标签
GitHub Actions push 到 main 自动构建部署
GitHub Pages 托管 + 自定义域名

目录结构

  • _config.yml — Hexo 站点配置(标题 / 作者 / url / 永久链接)
  • _config.butterfly.yml — 主题配置(导航 / 社交 / 深色 / 代码 / 搜索 / 页脚)
  • source/_posts/ — 文章;source/{videos,projects,models,hardware,wallpapers,timeline}/ — 板块页
  • themes/butterfly/ — 主题(含自定义首页板块与布局钩子)
  • .github/workflows/pages.yml — 自动部署流水线

本地跑起来


npm ci

npx hexo server    # http://localhost:4000

构建产物在 public/,执行 npx hexo generate 即可生成。

相关链接