astro-content-collections-minimal

by Ryota Hagihara

Nested Page Example

This page is located at src/content/nested/example.md and is served at the URL /nested/example.

How It Works

The directory structure inside src/content/ is directly reflected in the URL structure.

src/content/
├── index.md              → /
├── features.md           → /features
├── customization.md      → /customization
└── nested/
    └── example.md        → /nested/example

Directories can be nested to any depth.

src/content/
└── docs/
    ├── getting-started.md    → /docs/getting-started
    └── guides/
        └── deployment.md     → /docs/guides/deployment

No routing configuration is required. Simply place files in the directory, and the corresponding pages are generated automatically.