[{"content":"","date":"2026 年 3 月 31 日","externalUrl":null,"permalink":"/tags/blowfish/","section":"Tags","summary":"","title":"Blowfish","type":"tags"},{"content":"","date":"2026 年 3 月 31 日","externalUrl":null,"permalink":"/tags/hugo/","section":"Tags","summary":"","title":"Hugo","type":"tags"},{"content":"","date":"2026 年 3 月 31 日","externalUrl":null,"permalink":"/","section":"NizerossのBlog","summary":"","title":"NizerossのBlog","type":"page"},{"content":"","date":"2026 年 3 月 31 日","externalUrl":null,"permalink":"/posts/","section":"Posts","summary":"","title":"Posts","type":"posts"},{"content":"","date":"2026 年 3 月 31 日","externalUrl":null,"permalink":"/tags/","section":"Tags","summary":"","title":"Tags","type":"tags"},{"content":" 前言 # 搭建本博客参考了Gemini 3.0 Pro，Blowfish官方文档以及其他人的博客，还是踩了不少坑的，有的文档已经过时或者操作过于繁琐，官方文档又很庞杂，AI也有一定幻觉.\nhugo官方文档 Blowfish文档 褐瞳さん - 如何使用 Github Page 搭建自己的博客 Step # 创建项目 # 首先创建一个 Hugo 项目，site-name 记得替换成你的网站的名称（其实就是待会创建的文件夹名称）hugo new site site-name 可以看一眼它的项目结构，项目结构大概像这样：\nsite-name ├── archetypes # 模板文件 ├── assets # 资源文件，如 Logo ├── config # 配置文件夹 ├── content # 文章存放处 ├── i18n # 多语言资源 ├── layouts # 存放布局的文件夹 ├── static # 存放静态文件 ├── themes # 主题文件夹 └── hugo.toml # 项目配置文件 然后可以添加第一篇文章\nhugo new content posts/first-blog.md 这条命令会向 content 文件夹内新建一个 posts 文件夹，然后再根据默认模板创建一个 first-blog.md 文件 然后使用hugo server 即可在本地运行\n覆盖主题 # 在 Hugo 中，你自己所写的主题文件优先级都是高于 themes/主题名称/ 文件夹内主题的，所以可以很轻松的覆写你想 DIY 的部分\n对于 themes 文件夹内的文件，你只需要保证在根目录有着同样文件结构就能够覆盖\n例如目录部分，对于 blowfish 它的位置是 themes/blowfish/layouts/partials/toc.html，而我们只需要复制这个文件，并把它放在 layouts/partials/toc.html 即可\n部署到Github Pages # 本地预览：hugo server 部署发布：git add . -\u0026gt; git commit -m \u0026quot;...\u0026quot; -\u0026gt; git push 在线编辑：在 GitHub 仓库按 . 进入 Web 编辑器。 Tips # 自定义图标添加 # simpleicon ","date":"2026 年 3 月 31 日","externalUrl":null,"permalink":"/posts/how-build-blog/","section":"Posts","summary":"","title":"记录一下折腾blog的经历","type":"posts"},{"content":"","date":"2026 年 2 月 1 日","externalUrl":null,"permalink":"/categories/","section":"Categories","summary":"","title":"Categories","type":"categories"},{"content":"这里是摘要部分。写在这里的文字会显示在博客首页的卡片上。\n一、这是二级标题 # 这是正文段落。你可以在这里写下你的想法。这是加粗的文字，这是斜体。\n1.1 这是三级标题 # 如果你想列出清单：\n第一点 第二点 子要点 二、插入代码 # 作为计算机学生，你肯定要贴代码。Hugo 的代码高亮非常漂亮：\ndef hello_world(): print(\u0026#34;Hello Blowfish!\u0026#34;) 这是一个提示！ 可以在这里写一些 Tips。 这是一个警告！ 这里的颜色是可以自定义的。 ","date":"2026 年 2 月 1 日","externalUrl":null,"permalink":"/posts/my-first-post/","section":"Posts","summary":"","title":"My First Post","type":"posts"},{"content":"","date":"2026 年 2 月 1 日","externalUrl":null,"permalink":"/tags/%E7%BC%96%E7%A8%8B/","section":"Tags","summary":"","title":"编程","type":"tags"},{"content":"","date":"2026 年 2 月 1 日","externalUrl":null,"permalink":"/tags/%E7%94%9F%E6%B4%BB/","section":"Tags","summary":"","title":"生活","type":"tags"},{"content":"","date":"2026 年 2 月 1 日","externalUrl":null,"permalink":"/categories/%E9%9A%8F%E7%AC%94/","section":"Categories","summary":"","title":"随笔","type":"categories"},{"content":"","externalUrl":null,"permalink":"/authors/","section":"Authors","summary":"","title":"Authors","type":"authors"},{"content":"","externalUrl":null,"permalink":"/series/","section":"Series","summary":"","title":"Series","type":"series"}]