jekyll-toc-generator icon indicating copy to clipboard operation
jekyll-toc-generator copied to clipboard

TOC shows only a single level-one head

Open TomSwan opened this issue 10 years ago • 0 comments

I get a toc but it only shows H1 level heads, nothing more.

I installed nokogiri, and in _config.yml I put;

gems: [nokogiri]

then in head.html:

<link rel="stylesheet" href="{{ "/css/toc.css" | prepend: site.baseurl }}">

and in default.html change {{ content }} to:

{{ content | toc_generate }}

I copy toc.css to css folder, and tocGenerator.rb to _plugins.

That, I think, are all the steps in the README instructions. The toc box appears but only a single Level H1 head is shown. Am I missing something?

TomSwan avatar Dec 12 '15 20:12 TomSwan