A sticky TOC sidebar auto-generated from article headings. Set via Alternative Layout — no plugin needed.

Enabling

Set article layout to moko-cassiopeia:toc-right or moko-cassiopeia:toc-left in the Options tab. Requires id attributes on headings and at least 3 h2 or h3 elements.

CSS Variables

VariableDefaultControls
--container-toc-bgvar(--secondary-bg)Panel background
--toc-link-color#9fa6adLink colour
--toc-link-active-color#91a4ffActive section

Sticky Behaviour

Uses position:sticky with top:1rem. Collapses to accordion on mobile.

Tip: Best for articles with 5+ H2 sections.