Forrest logo
tool overview
On this page you find all important commands for the CLI tool hugo. If the command you are looking for is missing please ask our AI.

hugo

Hugo is an open-source static site generator command-line tool. It was created in 2013 by Steve Francia and is written in the Go programming language. Hugo is designed for building websites, blogs, documentation, and any other static web content. It aims to be fast, simple, and flexible. Hugo uses a template-based system that allows users to define the structure and layout of their website. It supports content written in multiple formats such as Markdown, HTML, and org-mode. The tool provides a live-reloading development server, allowing users to preview their site during development. Hugo supports multiple website themes and provides a wide range of customization options. It generates static HTML and CSS files, making the resulting website easily portable and performant. Hugo has gained popularity among developers due to its speed and ability to handle large-scale websites efficiently.

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
tool overview