Skip to content

Hugo

Install Hugo

sudo apt-get install hugo

Hugo basic commands

Go to your project folder and creates a new site

hugo new site <name-project>

Initialize the repo

git init

Launch the server Hugo so you can open it in your http://localhost:1313

hugo server

Create new content, like for instance:

  • A new chapter:
hugo new --kind chapter hugo/_index.md
  • A new entry:
hugo new hugo/quick_start.md
Last update: 2023-01-31
Created: January 1, 2023 21:59:36