jekyll-table-of-contents icon indicating copy to clipboard operation
jekyll-table-of-contents copied to clipboard

Follow the tutorial, but it is unsuccessful

Open xiaochopin opened this issue 1 year ago • 0 comments

//\_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

xiaochopin avatar Apr 14 '23 09:04 xiaochopin