# Gap review, 2026-12-02

> Build cost and page weight on two sites, the Hugo and Docsy capabilities OINK has not adopted, and the reader, version, search, agent and SEO gaps found in the theme source.

---

LLMS index: [llms.txt](/llms.txt)

---

> [!NOTE] Dated, non-normative review
> OINK's builds on Hugo 0.170.1 log no deprecation. This review found three kinds of gap: what a large multi-version site costs to build and publish, the eight reader-side items that the [theme roadmap](/docs/design/proposals/theme-roadmap/#small-gaps) lists and the source does not contain, and unfinished work for versions, search engines and agents. It records evidence and decides nothing.

## Inputs and method {#inputs}

Theme `2e2cc65` and documentation site `38ac227` were checked out in paired worktrees on 2026-12-02. Builds used Hugo 0.170.1 on macOS 27.2.1 with an 18-core Apple M5 Max and 128 GB of memory. Hugo v0.171.0 came out on 2026-11-30. The theme's CI passed on it for `69322a7` on 2026-12-01, and no build in this review used it. [v0.171.0](https://github.com/gohugoio/hugo/releases/tag/v0.171.0)

Three sites were built, each once:

- the theme's regression fixture `tests/site`, in the production environment;
- this documentation site, minified, in the production environment, with the local theme;
- a Pigsty manual checkout that builds five versions in two languages through Hugo's native version matrix. It enables Print for sections and single pages and indexes full text for local search. It is a local snapshot without a published commit, so its numbers show scale: another maintainer can repeat the method on a site of their own, not the result. Its build logs two content errors of its own and still writes every page.

```sh
GOWORK=off HUGO_MODULE_WORKSPACE=off \
HUGO_MODULE_REPLACEMENTS='github.com/pgsty/oink -> <theme worktree>' \
/usr/bin/time -l hugo --source <site> --destination <scratch> \
  --environment production --minify --noBuildLock --logLevel info
```

The manual was built twice more: with `HUGOxPARAMSxOFFLINE_SEARCH=false` to remove local search, and with `--templateMetrics` in place of `--logLevel info`. Sizes are bytes on disk, and a gzip size compresses one file at level 9. A shell page is an HTML file outside `_print` that contains `aside#td-shell-sidebar`. Its parts are measured from the opening tag to the first closing tag of that element, of `header.td-site-header`, of `footer[data-td-shell-footer]` and of `article.td-shell-article`. Every count is a snapshot of that day.

Statements about the theme come from its source at `2e2cc65`; a gap marked absent means a text search of `layouts/` and `assets/js/` found nothing. Hugo statements come from the official documentation and the release notes of v0.128.0 through v0.171.0, Docsy statements from its changelog for v0.10.0 through v0.18.1. Another framework is cited only where one page states the behavior, and each linked page was read on 2026-12-02. The theme roadmap holds the broader [framework comparison](/docs/design/proposals/theme-roadmap/#framework-survey) of 2026-11-21, which this review does not repeat.

## Build cost and output weight {#build-and-output}

| Measure | Documentation site | Five-version manual |
| --- | --- | --- |
| Pages rendered (content pages) | 1,412 (1,310) | 9,434 (4,724) |
| Wall time | 5.4 s | 62.2 s |
| CPU time | 19.8 s | 179.2 s |
| Peak memory | 1.1 GiB | 5.7 GiB |
| Output | 2,444 files, 148 MiB | 10,940 files, 1,208 MiB |
| HTML | 904 files, 95 MiB | 7,175 files, 964 MiB |
| Print, within HTML | 56 files, 18 MiB | 3,122 files, 332 MiB |
| Markdown | 528 files, 4.9 MiB | 3,134 files, 44.8 MiB |
| Shell pages | 590 | 3,124 |
| Median shell page | 121 KiB, 23 KiB gzip | 202 KiB, 28 KiB gzip |
| Median sidebar, header, footer, article | 35, 13, 15, 14 KiB | 116, 20, 13, 21 KiB |
| Sidebar, header and footer in shell-page bytes | 51% (36 of 70 MiB) | 65% (411 of 631 MiB) |
| Search index for one language of one version | 331–336 KiB, 69–77 KiB gzip | 0.76–1.32 MiB plus a body file of 1.76–3.53 MiB |

The manual's render step, summed over its ten sites and split by output format:

| Local search | HTML | Print | Markdown | Wall time | CPU time |
| --- | --- | --- | --- | --- | --- |
| On | 23.1 s | 27.7 s | 1.6 s | 62.2 s | 179.2 s |
| Off | 4.9 s | 20.0 s | 1.0 s | 33.1 s | 166.4 s |

### Local search index {#search-index-cost}

Turning local search off removed 29 s of wall time and 13 s of CPU time. `search/index-resources.html` builds the index inside `partialCached`: 14 calls, 1.4 s on average and 2.3 s at most. The longest calls of `scripts.html` and `shell/search-dialog.html`, which every shell page runs, were 2.3 s as well. The numbers fit pages waiting for an index that one worker computes. No profile confirmed which lock they wait on.

After gzip, a reader's browser downloads 163–315 KiB for the first search in the manual and 446 KiB to 1.11 MiB for body text. Pagefind takes the other approach and splits its index into chunks, so a search loads a small part of it. [Pagefind](https://pagefind.app/)

### Print {#print-cost}

Print took longer to render than HTML: 20.0 s against 4.9 s without local search. The manual enables Print for single pages as well as sections, where the [print guide](/docs/customize/print/) enables it for sections only. `docs/list.print.html`, the section aggregate, averaged 156 ms over 502 calls, and its longest call took 3.2 s. `print/page-content.html` ran 9,982 times for the 2,988 calls of the two docs Print templates, since a section's aggregate includes the pages of the sections below it.

### Repeated shell markup {#shell-weight}

Sidebar, header and footer are 65% of the manual's shell-page bytes, 411 MiB that repeat the same trees. The whole output is 1,208 MiB; a published GitHub Pages site may be no larger than 1 GB. Docsy 0.16.0 added an experimental `shared` chrome build mode that renders the navbar, footer and left navigation once per locale, to make link checking of large sites cheaper. [GitHub Pages limits](https://docs.github.com/en/pages/getting-started-with-github-pages/github-pages-limits) · [Docsy 0.16.0](https://www.docsy.dev/project/about/changelog/#v0.16.0)

### One stylesheet {#stylesheet-weight}

Scripts are split by capability: `core` is 18 KiB (5 KiB gzip), and 25 chunks load only on pages that use them. The stylesheet is one file of 635 KiB (96 KiB gzip) on every page, beside Font Awesome's 96 KiB (22 KiB gzip). Its largest layers are `experimental-presets.css` (70 KiB of source), `landing.css` (60 KiB) and `site-navbar.css` (31 KiB). A docs page in Paper loads the four experimental presets and Landing. In the fixture, `mermaid-en` and `mermaid-zh` are separate chunks with the same SHA-256.

## Hugo capabilities the theme does not use {#hugo}

| Capability | Since | Theme at `2e2cc65` | What it could serve |
| --- | --- | --- | --- |
| [`sites.complements`](https://gohugo.io/content-management/front-matter/#sites) | 0.153.0 | Not used | A visible fallback for a missing translation; lending a page to another version without a second output file |
| [Roles](https://gohugo.io/configuration/roles/) | 0.153.0 | `Site.Role.Name` is part of cache keys; nothing calls `Rotate "role"` and no switcher exists | Community and enterprise editions, public and internal manuals |
| [File name identifiers](https://gohugo.io/content-management/organization/) such as `about._version_v4.1_.md` | 0.161.0 | The [versions guide](/docs/customize/versions/) teaches mounts only | One page that differs in one version, without a directory for it |
| [Segments](https://gohugo.io/configuration/segments/) filtered by `sites` and `output` | 0.153.0 | No guide mentions `renderSegments` | Previewing one version or language, or leaving Print out of a preview |
| [Content adapters](https://gohugo.io/content-management/content-adapters/) with [`openapi3.Unmarshal`](https://gohugo.io/functions/openapi3/unmarshal/) | `getremote` 0.153.0 | No `_content.gotmpl` in the theme | A page per API operation, the roadmap's [R3](/docs/design/proposals/theme-roadmap/#openapi); glossary pages |
| [`Related`](https://gohugo.io/methods/pages/related/) and the [`tokenize`](https://gohugo.io/configuration/related-content/) index option | 0.166.0 | Not called | Related pages |
| [AVIF encoding](https://gohugo.io/configuration/imaging/), WebP in the standard build | 0.162.0, 0.153.0 | A content image is processed only when its author writes `command` and `options` | Responsive images in current formats |
| [`images.QR`](https://gohugo.io/functions/images/qr/) | 0.141.0 | Not called | A share code for WeChat; a link back from a printed page |
| [`GitInfo.Ancestors`](https://gohugo.io/methods/page/gitinfo/) | 0.148.0 | Not called | A page's revision history |
| [`Resource.Meta`](https://gohugo.io/methods/resource/meta/), [`images.Meta`](https://gohugo.io/functions/images/meta/) | 0.155.3, 0.171.0 | Not called | Capture details in Expo albums |
| [`templates.Defer`](https://gohugo.io/functions/templates/defer/) | 0.128.0 | Not called | Choosing stylesheets in `<head>` from what the page used; it must not run under `partialCached` |
| [`css.ChromaStyles`](https://gohugo.io/functions/css/chromastyles/) with light and dark pairs | 0.165.0, 0.164.0 | Four fixed files in `assets/css/td/chroma/` | A syntax palette the site chooses |

## Deprecations and upstream issues {#hugo-risks}

- The three builds logged no deprecation. The theme already reads `hugo.Data`, `hugo.Sites` and `Language.Locale`.
- `.Language.Lang` appears 167 times in 102 layout files. Hugo's documentation marks it deprecated since 0.158.0 in favor of `Name`; Hugo 0.170.1 does not log it. [Language methods](https://gohugo.io/methods/site/language/)
- Two open Hugo issues touch multi-version, multilingual sites: content at `/404` in one language stops the 404 page for every language ([#15641](https://github.com/gohugoio/hugo/issues/15641)), and `resources.ExecuteAsTemplate` and `resources.Copy` collide in the cache across languages ([#15595](https://github.com/gohugoio/hugo/issues/15595)).
- Three Hugo changes reach consumer sites, and neither the upgrade guide nor the troubleshooting guide mentions them. Since 0.152.0, unquoted `yes`, `no`, `on` and `off` in YAML are strings. Since 0.162.0, `text/html` content files are refused unless `security.allowContent` permits them. Since 0.166.0, `security.http.proxyFromEnvironment` decides whether `resources.GetRemote` honors the proxy environment variables, and it is off by default. [v0.152.0](https://github.com/gohugoio/hugo/releases/tag/v0.152.0) · [Security configuration](https://gohugo.io/configuration/security/)

## Docsy since 0.15 {#docsy}

Docsy's newest release is v0.18.1 of 2026-11-01. It still has no native versioning: its issue is open in the 27Q2 milestone. Since 0.17.0 it requires Dart Sass. [Changelog](https://www.docsy.dev/project/about/changelog/) · [Versioning issue](https://github.com/docsy/docsy/issues/114)

Docsy has four things OINK lacks:

- the `shared` chrome build mode of 0.16.0, described above;
- `params.docsy.plugins` since 0.18.0, which configures four optional scripts (Mermaid, MarkMap, tab persistence and click-to-copy) from site configuration;
- a `rel="describedby"` link in the page heads of sites that publish `llms.txt` since 0.18.0, and since 0.17.0 an experimental hidden pointer to `llms.txt` at the top of each page body;
- the `conditional-text` shortcode.

GitLab integration is Docsy's open issue with the most thumbs-up reactions, 13 on [#375](https://github.com/docsy/docsy/issues/375). OINK's repository links have the same limit, listed under [Operations](#gap-operations).

## Gaps in the theme source {#gaps}

An item that the roadmap already lists names its stage in parentheses. No proposal mentions the others.

### Reading {#gap-reading}

| Gap | Evidence at `2e2cc65` |
| --- | --- |
| Site announcement (R1) | No template or key. `announce` exists only as a screen-reader function in scripts |
| Page status in the sidebar and title (R1) | No template reads a page status key. Book labels drafts in its sidebar |
| Glossary with hover definitions (R1) | Absent |
| Related pages (R1) | `Related` is not called; static backlinks exist |
| 404 suggestions (R1) | `404.html` renders a title, one sentence and a link to the home page |
| Query highlighting on the page a result opens | A result links to the heading anchor, with no highlight parameter and no text fragment. Pagefind offers [`highlightParam`](https://pagefind.app/docs/highlighting/) |
| Link hover previews | Absent |
| Back-to-top control | Absent |
| Prefetch, Speculation Rules, view transitions ([Engineering quality](/docs/design/proposals/theme-roadmap/#engineering-quality)) | Absent; every navigation loads a full document |
| Offline reading | No service worker. Whether the output opens from `file://` was not tested |

### Versions and languages {#gap-versions}

| Gap | Evidence at `2e2cc65` |
| --- | --- |
| Canonical URL and indexing of older versions | `seo-alternates.html` sets each page's canonical URL to itself, and `head.html` writes `index, follow` on every production HTML page, archived versions included. Read the Docs derives the canonical URL from the default version; Docusaurus has a per-version [`noIndex`](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs). [Read the Docs](https://docs.readthedocs.com/platform/stable/canonical-urls.html) |
| Availability marks such as "since v4.2" | No shortcode or attribute |
| Search across versions | The index and its results belong to one version |
| Comparing one page in two versions | `ui.compare` pairs translations only |
| An interface for roles | See the [Hugo table](#hugo) |
| Fallback for a missing translation (R1) | The language selector opens the target language's home page. Starlight shows the default-language page with a notice. [Starlight](https://starlight.astro.build/guides/i18n/#fallback-content) |
| `hreflang="x-default"` | `seo-alternates.html` writes one alternate per translation and none for `x-default`. Starlight added it in 0.39.0. [Changelog](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md) |
| A notice that a translation is older than its source | `translation_notice` names the authoritative language. The page shows nothing when the source has changed since |

### Search {#gap-search}

| Gap | Evidence at `2e2cc65` |
| --- | --- |
| Index generation holds up rendering | [Measured above](#search-index-cost) |
| The index downloads whole | [Measured above](#search-index-cost) |
| Reporting searches that find nothing | Search scripts call no analytics function, though `feedback.js` already calls `gtag` |
| Site-wide synonyms | Only the page key `search_keywords` |

### Agent output {#gap-agents}

| Gap | Evidence at `2e2cc65` |
| --- | --- |
| Blocks for people only or for agents only ([Agent output](/docs/design/proposals/theme-roadmap/#agent-output)) | Absent |
| Prompt blocks (Agent output) | Absent |
| Discovery beyond the `text/markdown` alternate link (Agent output, as an experiment) | No `rel="describedby"` and no `.well-known` file |
| Rules for crawlers | `robots.txt` writes one `Allow` or `Disallow` and the sitemap |
| Page tools for browser agents | Absent. Rspress enables WebMCP by default since 2.1.0, and OINK's search engine already runs in the page. [Rspress](https://rspress.rs/guide/basic/webmcp) |

### Search engines and sharing {#gap-seo}

| Gap | Evidence at `2e2cc65` |
| --- | --- |
| Structured data | No `application/ld+json`. `head.html` calls Hugo's embedded `schema.html`, which writes microdata `meta` elements. [Embedded templates](https://gohugo.io/templates/embedded/#schema) |
| `noindex` for one page | No key; the [analytics guide](/docs/admin/analytics/#robots) says so |
| Server-side redirects | Aliases are Hugo's HTML redirect pages. The theme writes no `_redirects` file or server map |
| Generated social images (Engineering quality, last) | Absent |
| WeChat in the share bar | The 16 share targets have no WeChat, which needs a QR code |

### Code and content {#gap-content}

| Gap | Evidence at `2e2cc65` |
| --- | --- |
| Added, removed and focused lines (R1) | Absent; the [code guide](/docs/components/code/#limits) points to a `diff` fence |
| Including part of a file | `include` accepts `file`, `code` and `lang`. VitePress includes a named region. [VitePress](https://vitepress.dev/guide/markdown#import-code-snippets) |
| One configuration shown as YAML, TOML and JSON | Absent. Hugo's documentation uses a [`code-toggle`](https://github.com/gohugoio/hugoDocs/blob/master/layouts/_shortcodes/code-toggle.html) shortcode for it |
| Sortable tables (R1) | Absent; the [table guide](/docs/components/table/#limits) says so |
| Responsive images | `render-image.html` writes one `src` and `loading="lazy"` for every content image, the first on the page included, and no `srcset` |
| Light and dark variants of an image | Absent |
| Conditional content | Absent; `param` substitutes values only |
| Choice of syntax palette | Four fixed Chroma files |

### Operations {#gap-operations}

| Gap | Evidence at `2e2cc65` |
| --- | --- |
| Repository links for hosts other than GitHub | Keys are `github_*` and URLs use GitHub's `/edit/`, `/commits/` and `/new/` paths |
| A feedback destination other than `gtag` | `feedback.js` calls `gtag` and nothing else |
| Analytics and consent | Google Analytics through Hugo's embedded partial; any other service through `hooks/head-end.html`; no consent component |
| Strict content security policy (Engineering quality) | Inline scripts in `head.html` |
| API reference outside HTML (R3) | Swagger UI and Redoc render in HTML only |

## What the evidence suggests {#suggested-order}

This order is the review's reading of the evidence. No maintainer has decided it, and each item would need a proposal of its own.

1. Build scale comes first, since every added version multiplies it: take index generation off the path that pages wait on, state what Print costs when single pages enable it, reuse the shell markup, and split the stylesheet as the scripts are split.
2. Canonical URLs or `noindex` for older versions, and a guide to segments for previews. Both are small and reach every multi-version site.
3. From R1, the items a reader meets daily: the announcement, line markers, page status, and a translation fallback built on `sites.complements`.
4. Structured data for breadcrumbs, `x-default`, and `noindex` for one page.
5. Responsive images, and repository links for hosts other than GitHub.

## Limits {#limits}

- Each build ran once, on a machine that other work shared. A run earlier that day took 183 s for the same manual, while other jobs were running and the theme tree held uncommitted changes. The table uses the clean worktree.
- The manual is not public, and its Print and search settings are its own.
- No build used Hugo 0.171.0.
- Absence was established by searching source text, not by testing behavior. No browser, accessibility or visual review was part of this.
- The CLI was read only through its [introduction](/docs/cli/). Its link, translation and style checks may cover part of what authors need.
- Other frameworks were read one page at a time for the statements cited. Nothing here measures how often readers want a missing feature.

---

Backlinks:

- [Roles](/docs/design/proposals/roles/)
- [Research](/docs/design/research/)
- [Search indexing for versioned manuals](/docs/design/research/2026-12-04-versioned-documentation-seo/)
