这是第一篇示例文章,用来验证 Markdown 通道、RSS 与站内搜索是否工作正常。
写作与发布#
文章的发布流程只有一步:推送到 main 分支。
git add content/posts/hello-world.md
git commit -m "post: hello world"
git push推送后 Cloudflare Pages 会依次执行内容检查、Hugo 构建和 Pagefind 索引生成,全部成功才会替换线上版本。
标签#
每篇文章必须带 1–3 个标签,标签值来自仓库里的受控词表,构建前会校验数量、重复和是否存在。
下一步#
- 新增文章:在
content/posts/下新建 Markdown 文件。 - 新增长文档:在
content/posts/<slug>/index.html写 HTML 片段。 - 新增标签:先更新受控词表,再在文章里使用。