hugo

hugo

TLDR

Create a new Hugo site

$ hugo new site [path/to/site]
copy

Create a new Hugo theme (themes may also be downloaded from https://themes.gohugo.io/)

$ hugo new theme [theme_name]
copy

Create a new page

$ hugo new [section_name]/[filename]
copy

Build a site to the ./public/ directory

$ hugo
copy

Build a site including pages that are marked as a "draft"

$ hugo --buildDrafts
copy

Build a site to a given directory

$ hugo --destination [path/to/destination]
copy

Build a site, start up a webserver to serve it, and automatically reload when pages are edited

$ hugo server
copy

Copied to clipboard
Swissborg