1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-22 16:44:10 +02:00
tldr/pages/common/hugo.md
Managor fc3a8d07a1
*: use a more specific more info link, io domain (#17676)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
2025-08-16 10:32:10 +03:00

914 B

hugo

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/commands/.

  • Create a new Hugo site:

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

hugo new theme {{theme_name}}

  • Create a new page:

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

  • Build a site to the ./public/ directory:

hugo

  • 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}} --baseURL {{http://local_ip}}

  • Build a site to a given directory:

hugo {{[-d|--destination]}} {{path/to/destination}}

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

hugo server