为什么选择 Hugo

Hugo 是一个用 Go 语言编写的静态站点生成器,具有以下优势:

  • 构建速度快 — 相比其他静态站点生成器,Hugo 的构建速度非常快
  • 模板丰富 — 有大量优秀的主题可供选择
  • 部署简单 — 生成的纯静态 HTML 文件,可以部署在任何地方

搭建过程

1. 安装 Hugo

# Windows (使用 winget)
winget install Hugo.Hugo.Extended

# macOS (使用 Homebrew)
brew install hugo

2. 创建站点

hugo new site my-blog
cd my-blog

3. 安装主题

git clone --depth 1 https://github.com/adityatelange/hugo-PaperMod.git themes/hugo-PaperMod

4. 编写文章

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

总结

Hugo 是一个非常优秀的静态站点生成器,配合 PaperMod 主题可以快速搭建一个美观的个人博客。

学无止境,记录每一天的成长。