Following Gradients
A blog of math and marmots

Sections

Hugo Quick Commands

Note: These are incomplete personal notes and unlikely to be generally useful

Initialize a new Hugo project

Creates the 6 main directories, plus config.toml and archetypes/default.md

hugo new site path/to/empty/directory

Create a new content file

The path will be under the content/ directory. It will be initialized with front matter in TOML.

hugo new path/to/new/content

Start the server

This will keep a server running, updating on file changes. Use -D to build draft posts and -v for verbose output. --disableFastRender ensures that all changes will result in a full rebuild of the site.

hugo server -Dv --disableFastRender