Created
December 4, 2013 08:37
-
-
Save wzpan/7784179 to your computer and use it in GitHub Desktop.
Mustache - ToC template for ruhoh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{# page.toc }} | |
{{# page.tocstartlv }} | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
// Put a TOC right before the entry content. | |
generateTOC('.content', 'Contents', {{ page.tocstartlv }}); | |
}); | |
</script> | |
{{! {{/ page.tocstartlv }} }} | |
{{! {{^ page.tocstartlv }} }} | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
// Put a TOC right before the entry content. | |
generateTOC('.content', 'Contents'); | |
}); | |
</script> | |
{{/ page.tocstartlv }} | |
{{/ page.toc }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment