OINK v0.8.0 — A whole section in one fetch, the sidebar as data, and backlinks
OINK 0.8.0 makes a site readable in bulk — for agents and for people — with no component API change and no content edits.
Highlights
LLMSFULLfull-text bundles. A top-level section that listsLLMSFULLin its own front matteroutputspublishesllms-full.txtper language: every page of the section, in sidebar reading order, byte-identical to the per-page Markdown — one fetch instead of a crawl. (docs, live artifact)NAVJSONnavigation tree. AddingNAVJSONtooutputs.homepublishesnavigation.jsonper language: the sidebar's authority chain as versioned JSON (schema/nav.v1.schema.json), array order as the contract, weights never serialized.llms.txtlists both artifacts for discovery. (docs, live artifact)- Static backlinks. With
params.ui.backlinks: true, every page shows a Backlinks group in the right rail beside the table of contents — derived at build time from the ordinary links authors already write, no runtime, no new syntax; eight entries visible, the rest behind a native disclosure. (docs) - Fixed: a
data/docs_nav.jsonnode without achildrenkey no longer crashes the sidebar walker; authored data degrades to a leaf. - Dependencies: vendored mermaid 11.17.2, swagger-ui 5.32.14, docsearch 5.0.4; the module speaks Go 1.27.0.
Upgrade
hugo mod get github.com/pgsty/oink@v0.8.0
hugo mod tidyAll three features are opt-in; a site that enables none builds byte-identically to 0.7.1. Release notes: English · 中文
OINK 0.8.0 让站点可以被成批地读——服务 agent,也服务读者,不改动任何组件 API,不需要修改内容。
LLMSFULL全文包:顶层栏目在自己的 front matteroutputs里列出LLMSFULL,即为每种语言发布一份llms-full.txt——整个栏目按侧栏阅读顺序拼接,与每页 Markdown 逐字节一致,一次抓取替代逐页爬取。(文档·真实产物)NAVJSON导航树:outputs.home加上NAVJSON,每种语言发布一份navigation.json——侧栏权威链的版本化 JSON(schema/nav.v1.schema.json),数组顺序即契约,绝不序列化 weight;llms.txt列出两类产物作为发现入口。(文档·真实产物)- 静态反链:
params.ui.backlinks: true后,每一页右栏目录旁多出「反链」组——构建时从作者本来就写的普通链接派生,无运行时、无新语法;前八条可见,其余收进原生折叠。(文档) - 修复:
data/docs_nav.json里没有children键的节点不再让构建崩溃,按叶子渲染。 - 依赖:vendored mermaid 11.17.2、swagger-ui 5.32.14、docsearch 5.0.4;模块声明 Go 1.27.0。