# When does an article show a table of contents?

_Category: Write articles_

When the article has headings and your theme's Article page includes the **Table of contents** component. Readers then see an **On this page** list beside the article and can jump to any section.

![Screen recording of a published article. On this page jumps to any section. The arrow beside Copy page opens print and AI options. Readers tell you if it helped.](https://helpcenter-io.s3.amazonaws.com/uploads/self/2RNdd3KlNx970l6xbFZ5c7RiLe0uVEqDMUUTiqoY.gif)
The On this page list follows the reader down the article.

The list is built from the article's headings, starting at Heading 2. The article title isn't included, and an article without headings shows no list. Use Heading 2 for your main sections and Heading 3 for the parts inside them.

Compass, the default theme, includes the component. To add it, remove it or change it:

1. Open the **Template editor**, go to **Pages** and pick the **Article** page.
2. The component lives in the **Sidebar** or **Utility** region. Add it there with **Add component**, or click it to edit it.
3. In **Heading levels**, choose how deep the list goes, from Heading 2 only down to Heading 5. **Sticky** keeps it in view while readers scroll.
4. Click **Publish**.

## Related articles

- [Add headings, lists and other blocks](https://self.helpcenter.io/content/add-blocks)
- [Customize the article page](https://self.helpcenter.io/content/article-page)
