How to Create a Simple Website

How to Create a Simple Website

Hugo is a Static Site Generator that allows you to create a website with little to no coding experience. You can use pre-built themes as a base for your website design. This allows you to focus more on populating the site with your content.

Because Hugo is mostly used for static websites, it’s perfect for creating blogs, portfolios, or documentation sites.

You can easily set up and create a Hugo website using a pre-built Hugo theme. With just a few short steps, you can then add content and pages to your website using Markdown.

How to Install Hugo

You need to install the Hugo static site generator to create, run, and test a Hugo website. According to the Hugo documentation, there are many ways you can install it. Below are some of the options.

Mac

You can install Hugo using Homebrew.

  1. Open your macOS terminal.
  2. Install the Homebrew package manager.
    /bin/bash -c "$(curl -fsSL )"
  3. Install Hugo.
    brew install hugo

Windows

You will need an equivalent package manager for Windows. For example, you can use the Scoop package manager.

  1. Open Windows PowerShell, which should already be a part of your Windows Operating System.
  2. If you are installing Scoop for the first time, you may need to set your Execution Policy.
    Set-ExecutionPolicy RemoteSigned -scope CurrentUser
  3. Install Scoop:
    iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
  4. Install Hugo:
    scoop install hugo

How to Create a Hugo Project

To create a new Hugo project, you will need to use the built-in hugo new site command.

  1. Open your terminal or command prompt. Navigate to the folder where you would like to create your project.
  2. Execute the hugo new site command:
    hugo new site new-hugo-website
  3. Navigate to the location of your Hugo project in your file explorer.
  4. Open the project folder. You will see that your new Hugo website has the file and folder structure required for your website to work.
James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.