How To Add A Table Of Contents To Jekyll Blog Posts

A table of contents is an invaluable component to have on longer blog posts. Learn how to add one to your Jekyll website.

Anatomy Of Table Of Contents

Configuring Table Of Contents In Jekyll

gem 'jekyll-toc'
- jekyll-toc

# TOC Settings
min_level: 1
max_level: 3
list_class: toc
list_class: toc__list
sublist_class: toc__sublist

Adding A Table Of Contents To A Blog Post

Wrap Up

Design + Productivity. Learn everything you need to improve your design skills and stay productive. My Book: