Getting Started

Learn to create a basic hugo site and theme.

Prerequisites

Please check quick start to install Hugo.

Create a site

For this tutorial lets create a simple site using Hugo

 hugo new site hugo-tutorial

Every hugo site nees a theme at least a bare minimal, so let’s create a theme.We are not going to modify anything in the theme.

hugo new theme hugo-themes-starter

Then, add the theme to the site configuration, or edit config.toml file directly

cd hugo-tutorial
hugo new theme hugo-themes-starter

Let’s start the server with the below command

hugo server

Project structure

hugo folder structure
hugo folder structure

Assuming server started fine, access the url at http://localhost:1313

You should be seeing a blank page, as we dont have anything there yet.

Coming next

Step 1: Home Page : Lets create a home page for our site.