Forrest logo
back to context overview

hugo

List of commands for hugo:

  • hugo:tldr:27e85 hugo: Create a new page.
    $ hugo new ${section_name}/${page_name}
    try on your machine
    explain this command
  • hugo:tldr:7eb64 hugo: Create a new Hugo site.
    $ hugo new site ${path-to-site}
    try on your machine
    explain this command
  • hugo:tldr:9b603 hugo: Build a site including pages that are marked as a "draft".
    $ hugo --buildDrafts
    try on your machine
    explain this command
  • hugo:tldr:a7b20 hugo: Create a new Hugo theme (themes may also be downloaded from https://themes.gohugo.io/).
    $ hugo new theme ${theme_name}
    try on your machine
    explain this command
  • hugo:tldr:bcbd9 hugo: Build a site, start up a webserver to serve it, and automatically reload when pages are edited.
    $ hugo server
    try on your machine
    explain this command
  • hugo:tldr:f1f58 hugo: Build a site to the `./public/` directory.
    $ hugo
    try on your machine
    explain this command
  • hugo:tldr:fae66 hugo: Build a site to a given directory.
    $ hugo --destination ${path-to-destination}
    try on your machine
    explain this command
back to context overview