Using Hugo

Posted on Jul 15, 2025

Notes on day-to-day use of Hugo (static site generator).

Start Hugo’s development server to view the site:

You can run either of the following commands to include draft content.

 hugo server --buildDrafts
 hugo server -D

Press Ctrl + C to stop Hugo’s development server.

Add a new page:

Use different paths to make different kinds of pages.

  hugo new content content/posts/my-first-post.md

This command is purely a convenience. You can create files any way you want, so long as they’re in the right place and have the right content. The command just creates a file with default front-matter.

Deploy:

For my sites, I have a deploy script, so

./deploy