使用 Hugo 创建新文章的步骤 一、所有文章都使用标准格式: 1 2 3 4 5 6 7 8 9 10 11 --- title: "文章标题" date: "2025-01-01" author: "Cooper" categories: ["分类"] tags: ["标签1", "标签2"] description: "文章描述" slug: "url-slug" draft: false/true featured: true/false --- 二、文章分类 代码示例:code-block-test.md 语法参考:markdown-validate.md 功能演示:toc-test.md 写作模板:文章使用模板.md(草稿状态) 三、使用建议 创建新文章时: 复制 文章使用模板.md 重命名为新文件名 修改Front Matter 参考其他3篇文章的格式 设置 draft: false 后发布