hugo Command Examples

Template-based static site generator. Uses modules, components, and themes. Some subcommands such as server have their own usage documentation. More information: https://gohugo.io.

hugo new site {{path/to/site}}

hugo new theme {{theme_name}}

hugo new {{section_name}}/{{page_name}}

hugo

hugo --buildDrafts

hugo server --bind {{local-ip}} --baseURL {{http://local-ip}}

hugo --destination {{path/to/destination}}

hugo server