Step 4: Pages & zones
Now you'll add a new zone so readers always know where they are.
Before you start
- Step 3 finished
Do it
Type each command on its own and wait for it to finish before the next one.
Create the folder for the zone.
bash
mkdir site/tutorialsExpected output
text
(no output)Create site/tutorials/index.md in your editor with this content:
md
# Tutorials
Step-by-step lessons.In config.ts, add a nav link and a sidebar for the zone:
ts
nav: [{ text: 'Tutorials', link: '/tutorials/' }],
sidebar: {
'/tutorials/': [{ text: 'Tutorials', items: [{ text: 'Overview', link: '/tutorials/' }] }],
},Result
Tutorials shows in the top nav. Its sidebar lists only its own pages.