Docs

Install Hugo

Install Hugo on macOS, Linux, Windows, BSD, and on any machine that can run the Go compiler tool chain.

For full info visit official doc: https://gohugo.io/installation/

Quick Start

hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/matusstafura/berg-hugo-theme themes/berg
echo "theme = 'berg'" >> hugo.toml

and to start the server, run:

hugo server

First Post

Create a new post in terminal:

hugo new posts/my-first-post.md

or manually, where you create a directory in content folder named posts and file my-first-post.md.

Fill the content of the file like below and save the file.

---
title: "My First Post"
---

# Hello