Blog Style

目标:统一 Hugo 博客 Markdown 写作规范,便于维护,并让 Codex/AI 可稳定自动排版与美化。 1. 代码块规范(必须) 所有代码使用 fenced code block,并标注语言。 命令行统一用 bash,输出统一用 text,禁止混写。 多行代码逐行书写,保证可复制、可阅读。 示例(命令): example command curl -I https://github.com 示例(输出): HTTP/2 200 server: github.com 2. Hugo Front Matter 规范(必须) 2.1 YAML 表头(必填) 每篇文章开头必须包含 YAML Front Matter,推荐模板: --- title: "xxx" weight: 1 slug: "xxxx" date: 2026-01-19 lastmod: 2026-01-23 categories: ["LLM"] tags: ["AI", "多模态"] draft: false description: "一句话概括文章内容,用于列表摘要与 SEO" ShowToc: true TocOpen: true math: true --- 2.2 目录结构(推荐固定) content/posts/ # 博客文章 content/notes/ # 学习笔记(可选) content/projects/ # 项目(可选) 文章文件名统一:content/posts/英文-短横线.md。 ...