Hi,
I am glad you found it useful and look forward to seeing what you publish!
This is a bit I intend to add in the near future! Pandoc actually has the ability to generate a table of contents automatically. Ill add the details to the tutorial soon but the basic steps are:
1. Add <nav>$toc$</nav> to your template.html before the main section.
2. Addthe flags -s --toc to the build command for the web output.
This will should automatically generate you table of contents on your page.