Private sections
How to keep a folder or page off the public site.
Two ways to mark something private:
- A whole folder: put
"private": truein itsmeta.json. Everything under it, at any depth, is private. - One page: add
private: trueto its frontmatter.
The site is built twice. The public build leaves private pages out entirely, so they are not in the HTML, the search index or the sidebar. Linking to a private page from a public one gives visitors a 404.
Status: signing in to see private pages is not switched on yet. Until it is, private pages simply do not appear anywhere on the live site.