hugo
all
Template-based static site generator. Uses modules, components, and themes. Some subcommands such as `server` have their own usage documentation.
More info →Options (3)
-D, --buildDraftsbooleanBuild a site including pages that are marked as a "draft"
Example:
hugo {{[-D|--buildDrafts]}}-b, --baseURLbooleanBuild a site on your local IP
Example:
hugo server --bind {{local_ip}} {{[-b|--baseURL]}} {{http://local_ip}}-d, --destinationbooleanBuild a site to a given directory
Example:
hugo {{[-d|--destination]}} {{path/to/destination}}Examples (8)
Create a new Hugo site
hugo new site path/to/siteCreate a new Hugo theme (themes may also be downloaded from <https://themes.gohugo.io/>)
hugo new theme theme_nameCreate a new page
hugo new section_name/page_nameBuild a site to the `public` directory
Build a site including pages that are marked as a "draft"
hugo [-D|--buildDrafts]Build a site on your local IP
hugo server --bind local_ip [-b|--baseURL] http://local_ipBuild a site to a given directory
hugo [-d|--destination] path/to/destinationBuild a site, start up a webserver to serve it, and automatically reload when pages are edited
made by @shridhargupta | data from tldr-pages