基于 Hugo 静态网站生成器搭建的个人博客,使用了 geek-death-project 主题。
🌐 博客地址: https://blog.xiaoweigezzz.xyz/ 📁 GitHub 仓库: https://github.com/pawaovo/xiaoweigeblog
- 极简设计:专注内容,减少视觉干扰
- 快速加载:静态网站,访问速度快
- 全站搜索:支持快捷键搜索(⌘+K 或 Ctrl+K)
- 响应式设计:在各种设备上都有良好的阅读体验
- 多语言支持:支持中英文双语
- 评论系统:基于 GitHub Discussions 的 Giscus 评论
- Hugo v0.148.1+ (extended version)
- Node.js 和 npm
- Git
- 克隆仓库:
git clone https://github.com/pawaovo/xiaoweigeblog.git
cd xiaoweigeblog- 安装依赖:
npm install- 构建 CSS:
npm run build:uno:prod- 启动本地服务器:
hugo serve# 使用快速脚本创建文章(推荐)
./new-post.sh "文章标题"
# 或使用 Hugo 命令
hugo new posts/my-new-post.md
# 创建新的知识卡片
hugo new cards/my-concept.md- 推送代码到 GitHub 仓库
- 在仓库设置中启用 GitHub Pages
- GitHub Actions 会自动构建和部署
- 连接 GitHub 仓库到 Cloudflare Pages
- 设置构建命令:
npm run build:uno:prod && hugo - 设置输出目录:
public
主要配置文件位于 config/_default/ 目录:
config.yaml- 基础配置params.yaml- 主题参数languages.yaml- 多语言配置
content/
├── posts/ # 博客文章
├── cards/ # 知识卡片
├── about.md # 关于页面
└── ...
- 博客源代码:MIT 协议
- 博客内容:CC BY-SA 4.0 协议
基于 geek-death-project 主题构建。