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
| Variable | Default | Controls |
|---|---|---|
--container-toc-bg | var(--secondary-bg) | Panel background |
--toc-link-color | #9fa6ad | Link colour |
--toc-link-active-color | #91a4ff | Active section |
Sticky Behaviour
Uses position:sticky with top:1rem. Collapses to accordion on mobile.