--
:
--
:
--
hugo-teek is loading...
快速开始
最后更新于:
快速开始
环境要求
- Hugo Extended v0.150.0 或更高版本
- Go v1.21+ (用于构建工具)
- Git (用于版本管理)
安装 Hugo
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-theme
安装依赖
1# 安装 Go 工具依赖
2make install-deps
启动开发服务器
1# 方式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这是我的第一篇博客文章。
保存后,页面会自动刷新显示新文章。
📡
👤
作者:
余温Gueen
🌐
版权:
本站文章除特别声明外,均采用
CC BY-NC-SA 4.0
协议,转载请注明来自
余温Gueen Blog!
推荐使用微信支付

推荐使用支付宝
