Skip to content

Repository files navigation

Eryk's Blog

基于 Hugo + Stack 主题的技术博客。

快速开始

本地预览

hugo server

访问 http://localhost:1313

创建新文章

hugo new content/posts/my-new-post.md

部署

推送到 GitHub 后自动部署:

git add .
git commit -m "更新内容"
git push

项目结构

.
├── content/           # 内容目录
│   ├── posts/        # 博客文章
│   └── page/         # 页面(关于、归档、搜索)
├── static/           # 静态资源
├── assets/           # 主题资源
│   └── icons/       # 自定义图标
├── themes/           # 主题目录
│   └── hugo-theme-stack/
└── hugo.yaml         # 配置文件

技术栈

  • 静态站点生成器: Hugo
  • 主题: Stack
  • 部署: GitHub Pages
  • CI/CD: GitHub Actions

主要功能

  • 📝 Markdown 写作
  • 🔍 全站搜索
  • 🏷️ 标签和分类
  • 📚 归档时间线
  • 🌓 明暗主题切换
  • 📱 响应式设计
  • ⚡ 快速加载

配置说明

主要配置在 hugo.yaml 中:

  • 站点信息: baseURL, title, description
  • 菜单: menu.main 和 menu.social
  • 侧边栏: params.sidebar
  • 小部件: params.widgets
  • 社交链接: GitHub, Twitter, Email

详细配置请参考 Stack 主题文档

关于

  • 创建日期: 2026-01-20
  • 文章数量: 63 篇
  • 历史记录: 迁移文档和备份保存在 .archive/ 目录

联系方式

License

内容版权归作者所有。

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages