I was wondering if there's a way to generate a separate table of content base on the main content?
I tried a few different things but did not seem to worked well, cause i am trying to get this working on GitHub Enterprise 2.8 Pages.
I tried jekyll-toc (https://github.com/toshimaru/jekyll-toc), and used it as a plugin, it worked in development, but doesn't work on GHE 2.8.
kramdown have its own ToC generation, but I don't think you can filter it the same way you can with jekyll-toc. Meaning I can't have it outside of the markdown page.
Or if there's other suggestion I can use?
Example:
Kramdown This is only can be in the markdown I believe
*ToC
{:toc}
jekyll-toc Applying to _layout
<div class="col-md-9" role="main">
<h1>{{ page.title }}</h1>
{{ content }}
</div>
<div class="col-md-3" role="complementary">
{{ content | toc_only }}
</div>