Table of contents using Jekyll and Kramdown
问题 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 <nav> <h4>Table of Contents</h4> {:toc} </nav> my_cool_stuff/my_cool_page.md --- layout: page --- {% include toc.html %} # The title of my page ## The Subtitle of my page The HTML is generated literally and I'm not getting a list of headers. <nav> <h4 class="toc_title">On This Page</h4> {:toc} </nav> What am I setting up wrong? 回答1: {:toc} is kramdown tag for automatic