2025-03-24 00:53:05 +01:00

1.2 KiB

+++ categories = ['explanation'] 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::folder
  - log::folder
    - first-day::folder
      - _index.md::fa-fw fab fa-markdown::secondary
      - first-sub-page::folder
        - _index.md::fa-fw fab fa-markdown::secondary
        - picture1.png::file-alt::accent
        - plain.txt::file-alt::accent
    - second-day::folder
      - index.md::fa-fw fab fa-markdown::secondary
      - picture1.png::file-alt::accent
      - picture2.png::file-alt::accent
    - third-day.md::fa-fw fab fa-markdown::secondary
    - _index.md::fa-fw fab fa-markdown::secondary
  - _index.md::fa-fw fab fa-markdown::secondary

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.