Improve table of contents

- Replace html snippet with _includes/toc.html
- Add FA icon to table of contents header
- Display table of contents on small screens
- Add hierarchy to toc with indents
This commit is contained in:
Michael Rose
2015-01-21 10:16:48 -05:00
parent 3688b97b3c
commit 9a1c5ff3e6
3 changed files with 18 additions and 26 deletions

9
_includes/_toc.html Normal file
View File

@ -0,0 +1,9 @@
<section id="table-of-contents" class="toc">
<header>
<h3><i class="fa fa-book"></i> Overview</h3>
</header>
<div id="drawer" markdown="1">
* Auto generated table of contents
{:toc}
</div>
</section><!-- /#table-of-contents -->