Table of contents
The theme is capable of automatically generating a table of contents.
This table is generated from all h2 tags found in the page content. There must be at least two tags for the table of contents to be generated.
Excluding headers
You can create headers that do not end up in the table of contents by using a div with a class of h2
like this:
<div class="h2">I'm a header</div>
This is a h2 heading
And this is some text under the h2 heading.
This is a h3 heading
And this is some text under the h3 heading
This is a h4 heading
And this is some text under the h4 heading
This is another h3 heading
And this is some text under that h3 heading
This is another h2 heading, but much longer
And this is some text under that h2 heading.
This is a h3 heading
And this is some text under the h3 heading
This is another h2 heading
And this is some text under that h2 heading. We'll make this text a bit longer so that it hopefully wraps on at least some Bootstrap breakpoints. This will allow us to see how other things behave when we change the width of the browser's viewport.
This is a h4 heading
And this is some text under the h4 heading
And this is some text under that div