快捷菜单
常用功能一站直达
更多功能请点顶栏「快捷菜单」
Linux/macOS:
1# 使用 Homebrew
2brew install hugo
3
4# 或下载二进制文件
5wget https://github.com/gohugoio/hugo/releases/download/v0.150.0/hugo_extended_0.150.0_linux-amd64.tar.gz
6tar -xzf hugo_extended_0.150.0_linux-amd64.tar.gz
7sudo mv hugo /usr/local/bin/验证安装:
1hugo version
2# 输出应包含 "+extended"1git clone https://github.com/yourusername/hugo-teeker-theme.git
2cd hugo-teeker-theme1# 安装 Go 工具依赖
2make install-deps1# 方式1: 使用 Makefile(推荐)
2make dev
3
4# 方式2: 直接使用 Hugo
5./hugo server --source=hugo-teek-site --bind=0.0.0.0 --port=8080 --buildDrafts
6
7# 方式3: 快速预览(跳过预生成)
8make quick访问 http://localhost:8080 查看网站。
1# 创建博客文章
2./hugo new posts/my-first-post.md --source=hugo-teek-site
3
4# 创建文档页面
5./hugo new docs/11.运维/docker-tutorial.md --source=hugo-teek-site编辑生成的 Markdown 文件,修改 Front Matter 和内容:
1---
2title: "我的第一篇文章"
3date: 2025-10-23T18:00:00+08:00
4draft: false
5description: "这是一篇示例文章"
6categories: ["技术"]
7tags: ["Hugo", "博客"]
8---
9
10## 你好,世界!
11
12这是我的第一篇博客文章。保存后,页面会自动刷新显示新文章。
日历 · 精选 · 友链 · 更多
如果内容对你有帮助,欢迎请我喝杯咖啡 ☕



One的公众号
爱折腾博客的小白