Hugo Quickstart

This is mostly for my own reference, but if you generally know what you’re doing when it comes to deploying a website and just want the bare minimum Hugo knowledge to put up a blog, here it is.

Download latest tarball.

Start new site

hugo new site <sitename>

Change directory into the themes folder and clone/unzip a theme. in themes folder

To set theme, open config.toml and set theme value.

Create post:

hugo new posts/my-title.md

Change some stuff in config.toml.

  • baseURL
  • theme
  • title

Build:

hugo -D

Deploy:

rsync -avz public/ user@example.com:www/

Or, as I like to do, create a simple deploy.sh script and put both of those commands in it.