主题
本站使用 Hugo 搭建,主题为 hugo-theme-reimu,作者是 D-Sketon。
主题以东方 Project 的博丽灵梦为风格,主要特性:
- 内置 APlayer + Meting 音乐播放器
- 支持 Utterances、Waline、Twikoo 等多种评论系统
- 暗黑模式与动态主题色
- 相册、标签页、折叠框等实用短代码
搭建流程
安装 Hugo:主题使用 SCSS,需要 extended 版本
创建站点:
hugo new site myblog cd myblog git init安装主题:推荐 submodule 方式,方便跟踪版本
git submodule add https://github.com/D-Sketon/hugo-theme-reimu.git themes/reimu配置:在
hugo.toml里声明theme = "reimu",并把主题的config、data复制到项目根目录按需修改本地预览:
hugo server
部署
GitHub Pages 只托管静态文件,需要借助 GitHub Actions 在推送时构建并部署。
大致流程:git push → Actions 执行 hugo --minify 生成 public/ → 部署到 Pages。
完整 workflow 见仓库的 .github/workflows/hugo.yml。

说些什么吧!