CmdID

CmdID / Commands

hugo

Template-based static site generator. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Template-based static site generator. Uses modules, components, and themes. Some subcommands such as server have their own usage documentation.

Create a new Hugo site

hugo new site path/to/siteIdentify

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

hugo new theme theme_nameIdentify

Create a new page

hugo new section_name/page_nameIdentify

Build a site to the public directory

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

hugo --buildDraftsIdentify

Build a site on your local IP

hugo server --bind local_ip --baseURL http://local_ipIdentify

Build a site to a given directory

hugo --destination path/to/destinationIdentify

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

hugo serverIdentify