jekyll-table-of-contents
jekyll-table-of-contents copied to clipboard
Follow the tutorial, but it is unsuccessful
//\_layouts\post.html
<!-- toc -->
<div id="toc"></div>
<script src="assets\scripts\toc.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#toc').toc();
});
</script>
<!-- toc -->
I added this code to the \_layouts\post.html
but didn't generate the corresponding content