# Gitea: howto add a TOC in a markdown file

**URL:** <https://community.tmpdir.org/t/gitea-howto-add-a-toc-in-a-markdown-file/577>\
**Category:** Tools\
**Tags:** gitea\
**Created:** [August 2, 2022, 2:26pm UTC](https://community.tmpdir.org/t/gitea-howto-add-a-toc-in-a-markdown-file/577 "2022-08-02T14:26:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [August 2, 2022, 2:26pm UTC](https://community.tmpdir.org/t/gitea-howto-add-a-toc-in-a-markdown-file/577/1 "2022-08-02T14:26:11Z")

</div>

In Gitea, you can add a table of contents (TOC) by adding the following to the top of a markdown file:

```auto
---
gitea: none
include_toc: true
---

```

This is another feature that makes Gitea a great [document system](https://handbook.tmpdir.org/documentation-formats.html).

[![](https://community.tmpdir.org/uploads/default/original/2X/f/fd2343e9195a784bbfb283f7fbd2ff8b82209440.jpeg "Adding a TOC to a Markdown file stored in Gitea") ](https://www.youtube.com/watch?v=XLhVdRz9e08)
