I use Wiki.js to store public and private pages. The most of part of the private pages are inside specific path but I have many private pages inside public paths. To set as a private page inside public paths I add a tag called "private" and a rule that checks a tag.
The private pages inside a private path are not shown on the left sidebar or in the search results but if you search by tag you can see the name of all private pages with the "private" tag and also the tag on the left sidebar. I wish this didn't happen.
Thank you!