- Install Hugo-extended v0.124 or later
- Clone the repository
- Run
git submodule update --init --recursive
to clone the theme submodule
Every section is a directory with an _index.md
file that defines the section's title.
Pages within a section are markdown files in the section's directory.
content
└── docs
├── documentation
│ ├── _index.md
│ └── how_to.md
└── some_other_section
├── _index.md
├── some_page.md
└── some_other_page.md
-
Create a .md file with the command
hugo new docs/section/page.md
-
Set draft to false
hugo serve
The page will be at http://localhost:1313/docs/
. Note the /docs/ at the end.
hugo
The command generates the static site in the public
directory.