Pages organization
In Hugo, pages are the core of your site. Once it is configured, pages are definitely the added value to your documentation site.
Folders
Organize your site like any other Hugo project. Typically, you will have a content folder with all your pages.
content
βββ level-one
β βββ level-two
β β βββ level-three
β β β βββ level-four
β β β β βββ _index.md <-- /level-one/level-two/level-three/level-four
β β β β βββ page-4-a.md <-- /level-one/level-two/level-three/level-four/page-4-a
β β β β βββ page-4-b.md <-- /level-one/level-two/level-three/level-four/page-4-b
β β β β βββ page-4-c.md <-- /level-one/level-two/level-three/level-four/page-4-c
β β β βββ _index.md <-- /level-one/level-two/level-three
β β β βββ page-3-a.md <-- /level-one/level-two/level-three/page-3-a
β β β βββ page-3-b.md <-- /level-one/level-two/level-three/page-3-b
β β β βββ page-3-c.md <-- /level-one/level-two/level-three/page-3-c
β β βββ _index.md <-- /level-one/level-two
β β βββ page-2-a.md <-- /level-one/level-two/page-2-a
β β βββ page-2-b.md <-- /level-one/level-two/page-2-b
β β βββ page-2-c.md <-- /level-one/level-two/page-2-c
β βββ _index.md <-- /level-one
β βββ page-1-a.md <-- /level-one/page-1-a
β βββ page-1-b.md <-- /level-one/page-1-b
β βββ page-1-c.md <-- /level-one/page-1-c
βββ _index.md <-- /
βββ page-top.md <-- /page-top
Note
_index.md
is required in each folder, itβs your βfolder home pageβ
Create your project
The following steps are here to help you initialize your new website. If you don’t know Hugo at all, we strongly suggest you to train by following great documentation for beginners.
Hugo provides a new
command to create a new website.
hugo new site <new_project>
The Relearn theme provides archetypes to help you create this kind of pages.