Hugo is a static site generator. Unlike other systems which dynamically build a page every time a visitor requests one, Hugo does the building when you create your content.
Hugo is optimized for website viewing
hugo new site NAME
hugo new post/good-to-great.md
mkdir themes && cd themes && \
git clone https://github.com/path-to/your-theme.git
hugo server --theme=your-theme --buildDrafts
hugo undraft content/post/good-to-great.md
./hugo --theme=your-theme
The public
folder can be deployed to a server
www/
├── archetypes
├── config.json
├── content
│ └── post
│ └── good-to-great.md
├── data
├── layouts
├── public...
├── static
└── themes...
hugo new
adds a few configuration properties to the post like date and title,
define your own configuration properties with archetypes
See config.toml
, YAML and JSON also supported
Website sections, i.e. blog, article, or tutorial
Configuration files, can be YAML, JSON or TOML
Specify how your content will be converted into the static website
Images, CSS, JavaScript or other static content
hugo new theme your-theme
See this, possibly because “It is thin. It needs more than a couple lines of original text” or “It doesn’t have enough reputation or links. A page may be buried too deep in your site to rank. Any page without external links and more than a few clicks from the home page is unlikely to get indexed.”