Hidden Pages
A hidden page is built and reachable by URL, but is left out of everywhere a reader would otherwise stumble across it.
What "hidden" means
| Appears in | Hidden page |
|---|---|
| Sidebar navigation | No |
| Search results | No |
| Graph and backlink panels | No |
sitemap.xml | No |
| Its own URL | Yes |
Hidden pages also carry a noindex robots tag, so a search engine that
encounters the URL will not list it.
Useful for drafts, unlisted references, and pages you want to link to directly without putting them in the navigation.
Hiding a page
Add hidden: true to its frontmatter:
---
title: Draft Notes
description: Not ready yet
hidden: true
---
# Draft NotesThat is all. This is how this site's own hidden page is marked.
Or from navigation
If you maintain a manual navigation array, an entry can be hidden there
instead:
navigation: [{ name: 'Draft Notes', path: 'notes/draft', hidden: true }];Hiding a section hides everything beneath it:
{
name: 'Internal',
hidden: true,
children: [
{ name: 'Runbook', path: 'internal/runbook' }, // also hidden
{ name: 'Oncall', path: 'internal/oncall' }, // also hidden
],
}Both mechanisms are honoured, so a page hidden either way is hidden everywhere.
Finding the URL
npm run show-urlsπ [HIDDEN] Secret Demo Page
source β content/secret-demo.md
url β https://eziwiki.dev/secret-demo
Hidden is not private
A hidden page is a public file in your static export. Anyone with the URL can read it, and nothing prevents it being shared. Using hashed URLs makes the address unguessable, which is obscurity, not access control.
If content must not be read by the wrong person, do not publish it. Keep it out
of content/, or put the whole site behind authentication at the host.
Excluding a page entirely
To keep a file in the repository but out of the build altogether, prefix its
name or its folder with _:
content/
βββ _drafts/ β never built
β βββ half-done.md
βββ published.md
Files and folders starting with _ or . are skipped by the content scanner,
so they produce no page at all.
Use _ for work that should not exist yet, and hidden: true for work that
should exist but not be advertised.
Next
- URL Strategies β readable versus opaque URLs
- Navigation Configuration β how the sidebar is built