Repository navigation
OINK v1.9.0 lets a Hugo site publish multiple manual versions and audience spaces in one build. Navigation, search and exported documents follow the reader’s edition. With Duo View enabled, readers can press B to compare translations or V to compare versions of the same page.
- Multilingual pages can suggest an available translation in the reader’s preferred language.
- An archived page can point search engines to its newer counterpart. Production sitemaps and language alternates use the same indexing rules.
- Configure
params.repoto provide edit, issue and commit links for your repository host. Addqrto the share menu for a locally generated QR code. - Enable
params.ui.version_linkafter configuring version-prefixed routes on your host. Sites with a custom head should callpartial "head-css.html" .per page. Custom comparison targets for other editions should declare their version.
Known issues
- When a site exports Markdown, a long footnote containing unspaced text can stop the Hugo build with
file name too long. The Markdown link resolver treats the footnote text as an asset path. - For a page such as
chapter/lesson.mdpublished at/chapter/lesson/, a../link back to the chapter can take readers to the site root.
Both cases passed with the same content on v1.8.0. Affected sites can keep their v1.8.0 pin.
Upgrade
Run these commands from the Hugo site root and rebuild the site.
hugo mod get github.com/pgsty/oink@v1.9.0
hugo mod tidy
hugo mod graphEnglish release notes · 中文发布说明 · Full changelog · Changes since v1.8.0