hugo
Template-based static site generator. Uses modules, components, and themes. Some subcommands such as
serverhave their own usage documentation. More information: https://gohugo.io/commands/.
- Create a new Hugo site:
hugo new site
- Create a new Hugo theme (themes may also be downloaded from https://themes.gohugo.io/):
hugo new theme
- Create a new page:
hugo new /
- Build a site to the
publicdirectory:
hugo
- Build a site including pages that are marked as a "draft":
hugo
- Build a site on your local IP:
hugo server --bind
- Build a site to a given directory:
hugo
- Build a site, start up a webserver to serve it, and automatically reload when pages are edited:
hugo server
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
