We use cookies on this site to enhance your user experience

By clicking the Accept button, you agree to us doing so. More info on our cookie policy

Table of Contents

Pages

Introduction

The table of contents are generated automatically from the page content using Jekyll TOC.

Set Up

To add contents to your page add toc: true to the page’s front matter. The contents will be displayed at the top of the page, above the content. You can also make the contents in the menubar.

Contents Title

To overwrite the default title for the contents, set toc_title: My Custom Title in the page’s front matter.

layout: page
title: Page With Contents
toc: true
toc_title: Custom Title

Displaying the contents in the menubar

If you would prefer to display the contents in the menubar at the side of the page, then use menubar_toc: true instead of toc: true. This will also override the page’s menubar setting.

layout: page
title: Page With Contents
menubar_toc: true
toc_title: Custom Title