Hugo Cheat Sheet

create a new site

cd /opt/hugo

hugo new site <sitename>

cd <sitename>/themes

pull in theme from github

git clone <git path>

modify conf file

cd /opt/hugo/<sitename>

edit config.yaml or config.toml

baseurl = "http://sitename/"

title = "MySite"

languageCode = "en-us"

themesdir = "themes"

theme = "hugo_eiio"

disqusShortname = "user id"

googleAnalytics='google analytics code'

create new Post

cd /opt/hugo/<sitename>

hugo new post/welcome.md

create new page

hugo new about.md