You want to add an automatically created table of content to your markdown post in Nikola SSG.
Nikola uses by default
python-markdown which supports the
First you need to enable the markdown extension in
MARKDOWN_EXTENSIONS = ['markdown.extensions.toc']
Then add the short code for TOC in your markdown file