# Here is a way to do Table of Contents (ToC)

**URL:** <https://forum.ghost.org/t/here-is-a-way-to-do-table-of-contents-toc/5419>\
**Category:** Themes\
**Created:** [February 1, 2019, 7:14pm UTC](https://forum.ghost.org/t/here-is-a-way-to-do-table-of-contents-toc/5419 "2019-02-01T19:14:54Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [February 25, 2020, 1:22pm UTC](https://forum.ghost.org/t/here-is-a-way-to-do-table-of-contents-toc/5419/27 "2020-02-25T13:22:09Z")

</div>

The styles provided in the tutorial are just a starting point, you can use CSS however you like to make something custom just for you 🙂

I made the choice to move the post content area to the left so the table of contents nav had space on the right hand side. You’ll notice that if you reduce the browser width in the layout you have made the table of contents will get cut off by the browser window, or wrap under the content.

As for the h3 headings, they get revealed when the h2 immediately above them has been clicked. You can see this happening in this gif when “Working with images in posts” is clicked:

 ![](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/1/1b741d3f543d87619d655c7752a2bc46d6c6ab21.gif)

Either that or you [don’t have enough content under the heading](https://forum.ghost.org/t/document-site-with-navigation-and-toc/10786/6). The collapsing feature can be turned off in Tocbot by adding `collapseDepth: 2` to the configuration. More into on the Tocbot docs:

> **[Tocbot](https://tscanlin.github.io/tocbot/#options)**
>
> Tocbot - Generate a table of contents based on the heading structure of an html document

---

_[View the full topic](https://forum.ghost.org/t/here-is-a-way-to-do-table-of-contents-toc/5419)._
