Route segments
The folder names in a Site set its URLs, with groups, keys, private folders and Experiment Variants.
The folder names in a Site set its URLs. A folder is a segment, and four spellings change what a segment does.
sites/www/(legal)/security/page.mdx/securityblog/[post]/page.mdx/blog/:post, one Page per member_drafts/hero.mdxprivate, never servedpricing/@annual/page.mdxan Experiment Variant of /pricing
Reference
| Name | URL | Does |
|---|---|---|
name/ | / | A segment |
(group)/ | none | Groups folders, often under a shared layout, and adds no segment |
[key]/ | / | One Page per member of the Collection the Page is about |
_name/ | none | Private: never served, never published |
@arm/ | the parent's | A Variant of the parent Page in an Experiment |
Examples
Minimal
---
about: content/ blog
---
<Article />Leaseline
blog/ serves one Page per published post, and pricing/ tests annual billing first.
---
title: Pricing
---
<PriceTable offers={["pro-annual", "pro"]} />What it builds
The SiteBuilder resolves the tree into Pages.
- a
Pageper member under[key]/, added and removed as the Collection changes - an
Experimentwith one Variant per@arm/, started withExperiment.start - the losing arm goes dormant when
Experiment.concludepicks a winner