user93353
user93353

Reputation: 14049

Github Pages: Automatic Table of Contents on a page with jekyll-theme-minimal or some other them which can be switched to easily?

I have blog which uses Github Pages & is forked from jekyllnow.

I use the jekyll-theme-minimal in my _config.yml (I think this may be inherited from jekyllnow, I don't remember).

On each page, I want an automatic Table of Contents (TOC) generated using all the #, ##, ### tags.

Is this possible with jekyll-theme-minimal or if not, then through some other theme which will can be easily moved to. I have a lot of existing pages & I don't want to change themes in a way which will require a lot of changes to make the existing pages work jut fine with it.

Upvotes: 2

Views: 793

Answers (1)

user93353
user93353

Reputation: 14049

Found a Liquid Based TOC which is trivial to integrate - https://github.com/allejo/jekyll-toc

Upvotes: 2

Related Questions