tldr/pages/common/hugo.md
Lucas Gabriel Schneider 3dc031f914 Update pages/common/hugo.md
Co-Authored-By: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2019-10-13 08:58:04 +05:30

712 B

hugo

Template-based static site generator. Uses modules, components, and themes. More information: https://gohugo.io.

  • Create a new Hugo site:

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

hugo new theme {{theme_name}}

  • Create a new page:

hugo new {{section_name}}/{{filename}}

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

hugo

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

hugo --buildDrafts

  • Build a site to a given directory:

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

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

hugo server