Notes: Deploying Hugo To Netlify

Quick steps on deploying Hugo to Netlify.

Install Hugo & dependencies

$ brew install hugo
$ go get github.com/kardianos/govendor
$ govendor get github.com/gohugoio/hugo
$ go install github.com/gohugoio/hugo

Download a theme

Pick a theme from Hugo themes.
Clone or add theme as submodule into the themes folder in you site root directory.

Netlify requires submodule.

$ cd themes
$ git submodule add https://github.com/halogenica/beautifulhugo.git
$ git submodule init
$ git submodule update

Configure theme

Add theme = "theme_name" to your config.toml file in the site root directory.
r.
Make sure to read the theme’s page on themes.gohugo.io & Github for additional theme specific setup info.

Git it

You know the drill.

Navigate to the folder containing you sire and:

$ git init
$ git add .
$ git commit -m 'First commit'

Make a new Github repository, add the remote, and push (They tell you exactly how on the create repository page!).

$ git remote add origin YOUR_GITHUB_REPOSITORY_URL
$ git push origin master

Hosting

Host on Netlify.

Process is straightforward, visit the site and their onboarding guide explains it excellently!

Resources:

Hugo Docs - Install Hugo

Hugo Themes

Hugo Docs - Host on Netlify