Hugo makes it easy to create content:
hugo new content posts/my-first-post.md
Read more about how the content is structured here.
Platform | Command |
---|---|
MacOS | brew install hugo |
Windows | choco install hugo-extended |
Or read thorugh the installation guide on the website.
hugo serve
hugo
my-site/
├── archetypes/
│ └── default.md
├── assets/
├── content/
├── data/
├── i18n/
├── layouts/
├── public/ <-- created when you build your site
├── resources/ <-- created when you build your site
├── static/
├── themes/
└── hugo.toml <-- site configuration
Read more about each one of the folders here.
.
└── content
└── about
| └── index.md // <- https://example.com/about/
├── posts
| ├── firstpost.md // <- https://example.com/posts/firstpost/
| ├── happy
| | └── ness.md // <- https://example.com/posts/happy/ness/
| └── secondpost.md // <- https://example.com/posts/secondpost/
└── quote
├── first.md // <- https://example.com/quote/first/
└── second.md // <- https://example.com/quote/second/