Hugo quick start

How to create a new Hugo site?

  1. Install Hugo following the oficial docs.

  2. Choose a theme here. For example, the theme of this website is Learn.

  3. Create a new hugo project with:

1
hugo new site <name-project>
  1. Init git repo.
1
git init
  1. Copy the zip of the theme choosed in the new folder themes or add the submodule.
1
git clone https://github.com/matcornic/hugo-theme-learn themes/learn

Or add the submodule:

1
git submodule add https://github.com/gesquive/slate themes/slate
  1. Edit configuration file config.toml and add:
1
2
baseURL = "http://localhost:1313/"
theme = "learn"
  1. Run the website, it will be available at http://localhost:1313/.
1
hugo server
Licensed under CC BY-NC-SA 4.0