Table of contents block.
Renders a navigation list of headings for sidebar or mobile use.
Supports two variants: :sidebar (default) for desktop border-l nav,
and :mobile for a collapsible <details> element.
Assigns
:content— currentSayfa.Contentstruct withmeta["toc"]:variant—:sidebar(default) or:mobile
Examples
<%= @block.(:toc) %>
<%= @block.(:toc, variant: :mobile) %>