a post with table of contents
This post shows how to add a table of contents in the beginning of the post.
Adding a Table of Contents
To add a table of contents to a post, simply add
toc:
beginning: true
to the front matter of the post. The table of contents will be automatically generated from the headings in the post.
Example of Sub-Heading 1
Example of another Sub-Heading 1
Table of Contents Options
If you want to learn more about how to customize the table of contents, you can check the jekyll-toc repository.