wjs-publishing-hugo
Installation
SKILL.md
wjs-publishing-hugo
Hugo 博客的对话式后台。我就是后台——没有 CMS、没有 /admin 页面、没有 PAT、没有 Cloudflare。
你说要发什么,我按仓库约定改 content/、放图、commit、push,走仓库现有部署流自动上线。
适用:maggiacito.com 这类 Hugo 站(content/posts/*.md + categories/tags taxonomy + GitHub Pages
Actions 部署)。其它 Hugo 仓库也能用,先按下面「前置检测」对齐约定。
前置检测(每次开工先做)
- 确认在 Hugo 仓库根:有
hugo.toml(或config.toml)和content/。不在就让用户给路径。 - 读
hugo.toml:拿timeZone、[taxonomies](确认categories/tags)。 - 看一篇现有帖子的 front matter(
content/posts/里随便挑一篇),确认字段与下面「权威格式」一致; 不一致就以仓库现状为准,别套用本文档的默认。
帖子的权威格式(maggiacito 现状)
文件:content/posts/<slug>.md。front matter 严格如下,日期用 YYYY-MM-DD HH:MM:SS(Asia/Shanghai):