diff --git a/assets/js/_src/toc.js b/assets/js/_src/toc.js index 5e64906..2d3d765 100644 --- a/assets/js/_src/toc.js +++ b/assets/js/_src/toc.js @@ -7,10 +7,7 @@ $(function() { if ($("#post-wrap .post-content h1").length == 0 - && $("#post-wrap .post-content h2").length == 0 - && $("#post-wrap .post-content h3").length == 0 - && $("#post-wrap .post-content h4").length == 0 - && $("#post-wrap .post-content h5").length == 0) { + && $("#post-wrap .post-content h2").length == 0) { $("#toc-wrap").addClass("hidden"); } }); \ No newline at end of file diff --git a/assets/js/dist/toc.min.js b/assets/js/dist/toc.min.js index d5dd257..56f77f2 100644 --- a/assets/js/dist/toc.min.js +++ b/assets/js/dist/toc.min.js @@ -1 +1 @@ -$(function(){if($("#post-wrap .post-content h1").length==0&&$("#post-wrap .post-content h2").length==0&&$("#post-wrap .post-content h3").length==0&&$("#post-wrap .post-content h4").length==0&&$("#post-wrap .post-content h5").length==0){$("#toc-wrap").addClass("hidden")}}); \ No newline at end of file +$(function(){if($("#post-wrap .post-content h1").length==0&&$("#post-wrap .post-content h2").length==0){$("#toc-wrap").addClass("hidden")}}); \ No newline at end of file