Ayil 的学习笔记博客,记录 AI 测试开发学习之路。
# 安装 Hugo(macOS)
brew install hugo
# 本地预览
hugo server
# 浏览器访问 http://localhost:1313
在 content/posts/ 目录下创建 Markdown 文件:
---
title: "文章标题"
date: 2026-04-15
categories: ["测开学习"]
tags: ["Python", "基础语法"]
---
正文内容使用 Markdown 编写...
推送到 main 分支后,GitHub Actions 自动构建并部署到 GitHub Pages。
├── config.toml # Hugo 配置
├── content/ # 内容目录
│ └── posts/ # 博客文章(Markdown)
├── layouts/ # 自定义布局模板
│ └── _default/ # 默认布局
├── static/ # 静态文件(图片、CSS、JS)
├── themes/ # 主题目录
└── .github/workflows/ # GitHub Actions 工作流
└── hugo.yml # 自动部署配置
相比之前的 Jekyll 方案,Hugo 的优势: