Directory Structure

In Cap'n Hugo, planks be th' core o' yer ship.

Th' theme generates th' navigat'n menu out o' th' given directory structure.

Org'nize yer ship like any other Cap'n Hugo project. Typically, ye will have a rrrambl'n directory wit' all yer planks.

rrrambl'n
β”œβ”€β”€ first-chapter
β”‚   β”œβ”€β”€ first-page
|   |   |── _index.md
|   β”‚   β”œβ”€β”€ first-sub-page
|   |   |   |── _index.md
|   |   |   |── picture1.png
|   |   |   └── plain.txt
β”‚   β”œβ”€β”€ second-page
|   |   |── index.md
|   |   |── picture1.png
|   |   └── picture2.png
β”‚   └── third-page.md
└── _index.md
Avast

While ye can also go different, _index.md (with an underscore) be recommended fer each directory, it’s yer directory’s home plank.

See Hugo’s guide fer rrrambl'n t' learn more.