Getting Started with Hugo

· 1 min read· Your Name
Getting Started with Hugo

Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.

Installation

Installing Hugo is straightforward. On macOS, you can use Homebrew:

brew install hugo

On Windows, you can use Chocolatey:

choco install hugo-extended

Creating a New Site

Once Hugo is installed, creating a new site is simple:

hugo new site my-blog
cd my-blog

Adding Content

Create your first post:

hugo new posts/my-first-post.md

Running the Development Server

Start the development server with:

hugo server -D

Your site will be available at http://localhost:1313.

Building for Production

When you’re ready to publish, build your site:

hugo

The output will be in the public/ directory.

Conclusion

Hugo is a powerful and fast static site generator. Give it a try for your next project!