It's not possible. If you don't want others to see certain entries, don't add them.
In this article
-
<% allItems.forEach(function(item) { %>
- <%= item.name %> <%= partial('partial-table-of-contents', { items: item.children, partial: partial }) %> <% }); %>
-
<% items.forEach(function(item) { %>
- <%= item.name %> <%= partial('partial-table-of-contents', { items: item.children, partial: partial }) %> <% }); %>