Hugo command line

create a new site

hugo new site hamstersite

adding a theme from Hugo Themes

cd hamstersite/themes git clone [url of the theme]

configuring config.toml to the new theme

theme = "hamstery-theme" There are probably some theme-specific options too. Check the toml config file in the example site file and copy it over.

adding new posts

hugo new posts/ This will create a new document with the post front matter at the top, based on the archetypes in the template. Hugo front matter docs

start the hugo server

hugo server -D with drafts enabled or hugo server

Site can now be previewed at http://localhost:1313/ !

build your pages

hugo or hugo -D drafts enabled