Jekyll automatic table of contents
问题 I have built a website based on the Jekyll code for the website for Apache Buildr. The Buildr website automatically generates a table of contents for each page based on the headers in the textile format files. For example, you write a page using textile marking out the headings like so . . h2(#why). Why are we doing this? BLah blah balh etc .. h2(#something). Some other header BLah blah balh etc .. Then in the default HTML you have some code that pipes the content into something called toc