hugo-theme-relearn/exampleSite/content/authoring/structure/index.en.md
Sören Weber 7e0a04d9aa
docs: distinctively name directories #567
too much `content`
2024-10-11 22:40:14 +02:00

1,020 B

+++ description = "Your content's directory structure" title = "Directory Structure" weight = 1 +++

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.