title = “使用 Hugo 搭建个人博客 part 3 : 本地测试” date = 2026-05-15T14:00:00+08:00 draft = false 分类(大类) categories = [“Hugo”] 标签(细节) tags = [“博客”, “Cloudflare”, “GitHub”, “Hugo”] 自动目录 showToc = true TocOpen = true 文章简介 summary = “记录使用 Hugo + Cloudflare 搭建个人博客的完整流程” 封面(可选) cover = { image = “/images/hugo-cover.jpg” } +++ Cloudflare部署Hugo个人博客(part 2 :本地测试) 1️⃣ 创建 Hugo 项目 📁 创建目录 cd D:\blogprojects hugo new site myblog cd myblog 2️⃣ 安装主题(PaperMod) ✔ 推荐方式:手动复制 将主题放入: ...

1 min

title = “使用 Hugo 搭建个人博客 part 3 : 自动化上传” date = 2026-05-15T14:00:00+08:00 draft = false 分类(大类) categories = [“Hugo”] 标签(细节) tags = [“博客”, “Cloudflare”, “GitHub”, “Hugo”] 自动目录 showToc = true TocOpen = true 文章简介 summary = “记录使用 Hugo + Cloudflare 搭建个人博客的完整流程” 封面(可选) cover = { image = “/images/hugo-cover.jpg” } +++ Cloudflare部署Hugo个人博客(part 3 :自动化上传) 1️⃣ 初始化 Git 仓库 git init 2️⃣ 配置 .gitignore 创建文件: notepad .gitignore 内容: public/ resources/ .hugo_build.lock 3️⃣ 提交源码到 GitHub git add . git commit -m "init blog" 4️⃣ 推送到 GitHub git branch -M main git remote add origin https://github.com/你的用户名/仓库名.git git push -u origin main 5️⃣ Cloudflare Pages 配置 连接 GitHub 仓库 选择你的 Hugo 仓库 构建配置 Build command: hugo Output directory: public 环境变量 HUGO_VERSION = 0.147.0 6️⃣ 自动部署流程 以后只需要: ...

1 min

title = “使用 Hugo 搭建个人博客 part 4 : 进阶” date = 2026-05-15T14:00:00+08:00 draft = false 分类(大类) categories = [“Hugo”] 标签(细节) tags = [“博客”, “Cloudflare”, “GitHub”, “Hugo”] 自动目录 showToc = true TocOpen = true 文章简介 summary = “记录使用 Hugo + Cloudflare 搭建个人博客的完整流程” 封面(可选) cover = { image = “/images/hugo-cover.jpg” } +++ Hugo 博客文章优化模板(part 4 :进阶版) 适用于 PaperMod 主题的标准技术博客 / 教程文章结构 🧠 一、文章标准结构(强烈推荐统一) 每篇文章建议分为 6 层结构: ① 标题 + 摘要 ② 背景说明 ③ 环境准备 ④ 核心步骤(重点) ⑤ 常见问题 ⑥ 总结 ✍️ 二、标准 Front Matter(必须统一) +++ title = "文章标题" date = 2026-05-15T10:00:00+08:00 draft = false summary = "一句话概括文章内容" categories = ["分类"] tags = ["标签1", "标签2"] showToc = true TocOpen = true +++ 📌 三、推荐文章开头结构 ✔ 标题(H1 自动生成,不重复写) ✨ 摘要(重点) 用 2~3 句话说明: ...

2 min