Version 9.2
See the changelog of this version for a detailed list of changes.0.166.0 Minimum required Hugo version
Breaking Change requiring action after upgrade
Change Change of behavior, may require action
New New behavior, often introducing new options
9.2.0 (2026-10-10)
Cap'n Hugo 0.166.0
- 0.166.0 This release requires a newer Cap'n Hugo version.
Change
-
Change Accessibility be now a supported feature o' th' theme.
Wit' th' new option
link.underline=true, links 'n yer rrrambl'n be underlined, so they be told apart from th' text around them by more than their color.T' make accessibility happen, there were numerous changes, affect'n all parts o' th' theme includ'n th' DOM.
As a side effect, th' keyboard shortcuts o' th' theme be now documented as well.
-
Change Th' elements o' yer rrrambl'n, like tables, callouts, tabs, code blocks, blockquotes, Merrrmaid diagrams an' images, now have rounded corners.
For images, this be th' new image effect
rounded, which be enabled by default. If ye want t' restore th' previous look o' yer images, setimageEffects.rounded=false'n yerhugo.toml. -
Change Marrrkdown tables can now merge cells, us'n th' rules o' Marrrkdown Preview Enhanced. A cell contain'n only
>merges into th' cell t' its right, a cell contain'n only^into th' cell above.If one o' yer tables already has such a cell an' should show th' character itself, escape it wit' two backslashes, like
\\>. -
Change Th' new
planksshortcode lists planks o' yer ship. Besides th' layouts known from th' now deprecatedchildrenshortcode, it can list descendants, sibl'ns or ancestors, filter them an' group an' order them by any field or front matter parameter o' a plank.Th'
childrenshortcode still works but issues a deprecat'n warning fer each use, nam'n th'plankscall that replaces it. See th' migrat'n instruct'ns.Wit'
type=group, th'childrenshortcode no longer shows a multi-column layout. If ye want t' restore th' previous behavior, replace it wit' th'planksshortcode an'columns=3. -
Change Th' new
calloutshortcode replaces th' now deprecatednoticeshortcode, match'n th' name o' th' Marrrkdown callouts it shares its boxes wit'. Th' parameters be unchanged.Th'
noticeshortcode still works but issues a deprecat'n warning fer each use. Rename yer calls t'callout. See th' migrat'n instruct'ns. -
Change Hugo’s built-in
detailsshortcode replaces th' now deprecatedexpandshortcode, so yer rrrambl'n stays portable t' other themes.Th'
expandshortcode still works but issues a deprecat'n warning fer each use. Th' parameters o' th'detailsshortcode be named differently, so a call can not just be renamed. See th' migrat'n instruct'ns.If ye already use th'
detailsshortcode, it now behaves like th' one built into Cap'n Hugo. Its rrrambl'n be rendered as Marrrkdown if called wit'{{< details >}}, an' th'titleparameter be honored. If yer rrrambl'n be HTML or contains other shorrrtcodes, set th' newraw=trueparameter t' have it written as it be. -
Change Th'
mathshortcode now renders yer formulae us'n Hugo’s built-in KaTeX while yer ship be built, instead o' th' MathJax library 'n th' browser.Th' theme finds yer formulae by th' delimiters o' Hugo’s Passthrough configurat'n. If yer ship doesn’t have it yet, add it, otherwise formulae marked by these delimiters be not rendered. Wit' th' codefence, shortcode an' partial rules, rrrambl'n without delimiters be rendered as one formula regardless.
By default, formulae be written as MathML an' displayed by th' browser. If ye prefer th' look o' KaTeX, which be th' same 'n every browser, set
math.output='htmlAndMathml'.Th' options
mathJaxInitializean'customMathJaxURLbe gone. Instead, ye can set any KaTeX option 'nmath. If ye defined yer own macros, move them t'math.macros.KaTeX doesn’t know every command o' MathJax. A formula it can not render be written as its source an' reported as a warning 'n yer build.
-
Change Th' front matter
params.pagesreplacesparams.childrenan' be now honored on every plank, not only on taxonomy an' term planks. Together wit' Hugo’scascade, ye can give all list'ns o' a subtree th' same look.Th' former
params.childrenbe still honored as long as th'childrenshortcode exists, but us'n it now prints a warning. -
Change How th' logo an' title be arranged be now set wit' th' new
logo.layoutoption.Th'
logo.direct'noption be deprecated. It still works, but th' theme warns ye if ye use it. Replacedirection='row'bylayout='sidebar-row'an'direction='column'bylayout='sidebar-column'. -
Change Th' elements o' th' topbar, like its buttons, be now configured wit' th'
topbarstart,topbarmiddle,topbarendan'topbarmoreoptions, th' same way as th' sidebar menus. Th' breadcrumb be now an element o' th' new middle area. Ye can set them 'n yerhugo.tomlor 'n th' front matter o' yer planks.Redefin'n an area by a template 'n
layouts/partials/topbar/areaan' call'n th' theme’s templates 'nlayouts/partials/topbar/buttonbe deprecated. Such an area template still defines its area, tak'n precedence over th' options, an' th' button templates can still be called, but th' theme warns ye if ye use them. Th' elements now live 'nlayouts/partials/topbar/element. See th' migrat'n instruct'ns. -
Change Version'n now builds on Hugo’s
versions. All versions o' yer ship be generated 'n one build o' one project, an' th' version switcher links directly t' th' same plank 'n th' other versions.Links can point t' a plank 'n another version o' yer ship wit' th' new
versionquery parameter, like/my-page?version=v1.0.0.Th' options
versions,versionan'versionIndexURLbe deprecated. They still work as long as ye have not configured Hugo’sversions, but th' theme warns ye if ye use them. See th' migrat'n instruct'ns. -
Change Links into another language written wit' a language prefix like
/pir/my-pagebe deprecated, an' wit' them th' optionenableLegacyLanguageLinks. They still work if th' option be set, but th' theme warns ye fer each such link. Use th'langquery parameter instead, like/my-page?lang=pir. -
Change Th' front matter
prean'post, renamed 'n 5.0.0, now issue a deprecat'n warning. UsemenuPrean'menuPostinstead. -
Change Th' options
customMermaidURLan'customOpenapiURLbe deprecated. They still work, but th' theme warns ye if ye use them.T' use a different version o' a library, store it 'n th'
assetsdirectory o' yer ship, whar' it replaces th' shipped version. See th' documentat'n o' th'mermaidan'openapishorrrtcodes. -
Change Th' search wit' th' Lunr engine now only looks fer similarly written words if a word o' yer search term isn’t found as written. Previously, such words were always included an' could bury th' hits ye were ask'n fer.
New
-
New Th' new color variants
contrast-lightan'contrast-darkhave colors chosen fer high contrast. -
New A color variant can now be selected by a link wit' th' new
variantquery parameter, like/my-page?variant=relearn-dark. -
New Marrrkdown blockquotes can name th' author an' th' source o' th' quotat'n wit' th' new
author,sourcean'hrefMarrrkdown attributes. -
New Th'
calloutshortcode has a newhintparameter t' show a tooltip fer th' title o' th' box. -
New Th'
tabshortcode has a newhintparameter t' show a tooltip fer a tab, which also names a tab that shows noth'n but an ay'con. -
New Th'
buttonshortcode an' topbar buttons have a newistoggleparameter fer buttons that show an' hide someth'n, tell'n assistive technology whether it be shown. -
New Th'
cardsshortcode has a newcolumnsparameter t' set th' number o' columns 'n full width mode. -
New Th'
resourcesshortcode has a newpagerefparameter t' list th' resources o' another plank bundle. -
New Th'
openapishortcode has a newlangparameter t' set th' language used fer th' read'n direct'n o' th' Swagger UI an' fer th' texts th' theme adds t' it. These texts be now translated. -
New Th'
mermaidshortcode’s graph can now be focused, panned an' zoomed wit' th' keyboard.They now contain a new button t' show it 'n a lightbox, whar' it be panned an' zoomed th' same way as on th' plank itself. Like an enlarged image, th' enlarged graph has its own URL.
-
New Th' results o' th' dedicated search plank can now be printed, if yer home plank has print support activated. Th' new
search.page.outputsoption lets ye decide this independently o' yer home plank. -
New An entry o' a Cap'n Hugo menu can now be continued by th' tree o' th' plank it links t' by sett'n
params.type='page'. For a taxonomy plank, this shows all o' its terms without list'n them 'n yer menu definit'n. -
New Th' theme writes no inline JavaScript anymore, so yer ship can be served wit' a strict Rrrambl'n Security Policy. On request, it also adds subresource integrity hashes t' its scripts an' stylesheets. Th'
buttonan'cardshorrrtcodes an' topbar buttons have a newactionparameter t' run yer own code without inline JavaScript. -
New Th' theme now ships a machine-read'ble SBOM at
sbom.cdx.json, list'n every third-party resource it can publish wit' yer ship, each wit' a license, a digest o' th' files th' theme ships an' - whar' upstream publishes them - a version an' a package URL.