layout | title | subtitle | toc | menubar | show_sidebar |
---|---|---|---|---|---|
page |
Page With Contents |
Example page with contents |
true |
example_menu |
false |
This is an example page with contents that are generated from the page content.
The page contents are generated automatically using Jekyll TOC.
To add contents to your page add toc: true
to the page's front matter.
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
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