Directory Structure
In Hugo, pages are the core of your site.
The theme generates the navigation menu out of the given directory structure.
Organize your site like any other Hugo project. Typically, you will have a content directory with all your pages.
content
βββ 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
Note
While you can also go different, _index.md
(with an underscore) is recommended for each directory, it’s your directory’s home page.
See Hugo’s guide for content to learn more.