LinuxCommandLibrary

hugo

fast static site generator written in Go

TLDR

Create new site

$ hugo new site [site-name]
copy
Build site
$ hugo
copy
Create new content
$ hugo new [posts/my-post.md]
copy
Start development server
$ hugo server
copy
Build with drafts
$ hugo --buildDrafts
copy
Build for production
$ hugo --minify
copy

SYNOPSIS

hugo [command] [options]

DESCRIPTION

Hugo is a fast static site generator written in Go. It builds websites from Markdown content using templates and themes.
Hugo is extremely fast, building thousands of pages in seconds. It supports themes, taxonomies, and shortcodes for complex sites.

PARAMETERS

COMMAND

Subcommand to run.
new
Create new content.
server
Start dev server.
build
Build site (default).
--buildDrafts
Include drafts.
--minify
Minify output.
-D
Include drafts.
-t THEME
Use theme.
--help
Display help information.

CAVEATS

Go-template syntax learning curve. Theme compatibility varies. No dynamic content.

HISTORY

Hugo was created by Steve Francia in 2013 as a fast alternative to Jekyll, written in Go.

SEE ALSO

hugo-server(1), jekyll(1), hexo(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community