OINK 1.9.0 — Versioned manuals and audience spaces
Read the right edition
A single Hugo build can publish several versions of a manual and give each audience its own space. Links, search results, translations and exports follow the reader’s edition. A space lists the versions and languages it actually publishes. See Versions.
With params.ui.compare: true, press B to read a translation beside the original or V to compare versions of the same page. Change the language or version in the right pane while reading. By default, OINK offers an existing translation in the reader’s preferred language. The reader decides whether to follow it.
Share and index the intended page
Enable params.ui.version_link to add Copy version link (copy_version_link). Configure the host to serve the version-prefixed address before enabling it. Mark a shared blog, Book or other section version_shared: true to keep one address across editions. An archived page points search engines to its eligible newer counterpart. The reader can still visit the archived address.
Page actions now accept a params.repo repository with provider-specific edit and issue links. Add qr to the share list for a code that Hugo generates in the page’s own space. Readers can scan it with JavaScript disabled. Production sitemap indexes omit empty archives whose pages all point to a newer canonical edition.
Upgrade a site
From the site root, pin the theme and verify the version Hugo resolves.
- Check your language, version and space menus, including any
compare/targets.htmloverride. Existing translation targets may omitversion. Give a cross-version target its actual version name. - The C shortcut switches spaces when a second space is available and otherwise opens commands. V compares versions when a counterpart is available and otherwise switches versions.
\opens commands directly. - If your site overrides
head.html, callpartial "head-css.html" .for each page so Expo, Landing and Print get the right styles. The theme fetches the comparison stylesheet when Duo View opens. - Rebuild a nested reading page with search enabled and try a phrase from its body. The standard search index is assembled per edition. Relative URL builds and Hugo server use synchronous rendering.
For configuration details and earlier migration steps, see the upgrade guide.
