Table of content - Front Matter

Enable or disable table of content selectively

Last modified 2025-05-12

ITADS

Allows to enable or disable the table of content on any page. By default, table of content display is set into LibDoc configuration TOC. You can customize it on any page by entering true or false into the front matter key tocEnabled.

The following front matter forces to hide the table of content:

layout: libdoc_page
tocEnabled: false

The following front matter forces to show the table of content:

layout: libdoc_page
tocEnabled: true