Table of Contents

Auto-generated table of contents from the headings on the current page.

Basic usage

Place the self-closing tag where you want the table of contents to appear.

{% toc /%}

The table of contents below is generated from this page's own headings:

Control how deep the heading hierarchy goes with depth:

{% toc depth=2 /%}

Attributes

AttributeTypeDefaultDescription
depthnumber3Maximum heading depth to include (e.g., 2 includes h2 and h3)
orderedbooleanfalseUse an ordered list instead of unordered