Gap review, 2026-12-02
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 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
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
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.
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 of 2026-11-21, which this review does not repeat.
Build cost and output weight
| 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 | 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
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
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 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
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 · Docsy 0.16.0
One stylesheet
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
| Capability | Since | Theme at 2e2cc65 |
What it could serve |
|---|---|---|---|
sites.complements |
0.153.0 | Not used | A visible fallback for a missing translation; lending a page to another version without a second output file |
| 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 such as about._version_v4.1_.md |
0.161.0 | The versions guide teaches mounts only | One page that differs in one version, without a directory for it |
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 with openapi3.Unmarshal |
getremote 0.153.0 |
No _content.gotmpl in the theme |
A page per API operation, the roadmap’s R3; glossary pages |
Related and the tokenize index option |
0.166.0 | Not called | Related pages |
| AVIF encoding, 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 |
0.141.0 | Not called | A share code for WeChat; a link back from a printed page |
GitInfo.Ancestors |
0.148.0 | Not called | A page’s revision history |
Resource.Meta, images.Meta |
0.155.3, 0.171.0 | Not called | Capture details in Expo albums |
templates.Defer |
0.128.0 | Not called | Choosing stylesheets in <head> from what the page used; it must not run under partialCached |
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
- The three builds logged no deprecation. The theme already reads
hugo.Data,hugo.SitesandLanguage.Locale. .Language.Langappears 167 times in 102 layout files. Hugo’s documentation marks it deprecated since 0.158.0 in favor ofName; Hugo 0.170.1 does not log it. Language methods- Two open Hugo issues touch multi-version, multilingual sites: content at
/404in one language stops the 404 page for every language (#15641), andresources.ExecuteAsTemplateandresources.Copycollide in the cache across languages (#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,onandoffin YAML are strings. Since 0.162.0,text/htmlcontent files are refused unlesssecurity.allowContentpermits them. Since 0.166.0,security.http.proxyFromEnvironmentdecides whetherresources.GetRemotehonors the proxy environment variables, and it is off by default. v0.152.0 · Security configuration
Docsy since 0.15
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 · Versioning issue
Docsy has four things OINK lacks:
- the
sharedchrome build mode of 0.16.0, described above; params.docsy.pluginssince 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 publishllms.txtsince 0.18.0, and since 0.17.0 an experimental hidden pointer tollms.txtat the top of each page body; - the
conditional-textshortcode.
GitLab integration is Docsy’s open issue with the most thumbs-up reactions, 13 on #375. OINK’s repository links have the same limit, listed under Operations.
Gaps in the theme source
An item that the roadmap already lists names its stage in parentheses. No proposal mentions the others.
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 |
| Link hover previews | Absent |
| Back-to-top control | Absent |
| Prefetch, Speculation Rules, view transitions (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 | 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. Read the Docs |
| 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 |
| 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 |
hreflang="x-default" |
seo-alternates.html writes one alternate per translation and none for x-default. Starlight added it in 0.39.0. Changelog |
| 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 | Evidence at 2e2cc65 |
|---|---|
| Index generation holds up rendering | Measured above |
| The index downloads whole | Measured above |
| 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 | Evidence at 2e2cc65 |
|---|---|
| Blocks for people only or for agents only (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 |
Search engines and sharing
| 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 |
noindex for one page |
No key; the analytics guide 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 | Evidence at 2e2cc65 |
|---|---|
| Added, removed and focused lines (R1) | Absent; the code guide points to a diff fence |
| Including part of a file | include accepts file, code and lang. VitePress includes a named region. VitePress |
| One configuration shown as YAML, TOML and JSON | Absent. Hugo’s documentation uses a code-toggle shortcode for it |
| Sortable tables (R1) | Absent; the table guide 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 | 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
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.
- 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.
- Canonical URLs or
noindexfor older versions, and a guide to segments for previews. Both are small and reach every multi-version site. - From R1, the items a reader meets daily: the announcement, line markers, page status, and a translation fallback built on
sites.complements. - Structured data for breadcrumbs,
x-default, andnoindexfor one page. - Responsive images, and repository links for hosts other than GitHub.
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. 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.