We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54c9c59 commit fc52cc1Copy full SHA for fc52cc1
layout/_widget/toc.ejs
@@ -1,9 +1,10 @@
1
<%- partial('_pre') %>
2
<% var realcontent = (page.encrypt == true) ? page.origin : page.content; %>
3
-
+<% if (realcontent && page.toc != false && toc(realcontent).length > 0) { %>
4
<section class="widget toc-wrapper <%- page.widget_platform %>" id="toc-div" <% if (page.encrypt == true) { %>style="display:none" <% } %>>
5
<%- partial('header', {item: item}) %>
6
<div class='content'>
7
<%- toc(realcontent, {list_number: item.list_number, min_depth: item.min_depth, max_depth: item.max_depth}) %>
8
</div>
9
</section>
10
+<% } %>
0 commit comments