I\'m trying to use Kramdown\'s auto \"Table of Contents\" generator on a page (not a post) on my Jekyll site.
_includes/toc.html
{:toc} is kramdown tag for automatic Table of content generation.
In your case, you need two more things to make it work :
Allow kramdown to parse inside html blocks : in _config.yml add :
_config.yml
kramdown: parse_block_html: true
in _includes/toc.html, you need to provide a seed list :
Table of Contents * this unordered seed list will be replaced by toc as unordered list {:toc}