This page looks best with JavaScript enabled

Setting Up a Blog With Hugo

 ·  ☕ 2 min read

Setting Up A Blog With Hugo

This site uses hugo and setup was easy. Following the
hugo quick-start was very
straight forward and simple.

Install

Install prerequisites:

  • go
  • git
  • hugo minimum version of 0.74.x for the terminal theme
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Check version latest version now is: hugo v0.101.0+extended linux/amd64

hugo version

# Create new site, NOTE: this command creates a new directory

hugo new site DereksBlogSource

# Add a theme

cd DereksBlogSource && git init
git submodule add -f https://github.com/panr/hugo-theme-terminal.git themes/terminal

# Add theme to the file config.toml

# Add a first page: this command just creates a markdown file with yaml metadata header

hugo new posts/Setting-Up-A-Blog-With-Hugo.md

# Start hugo live server

hugo server -D

For setting up hugo live server in WSL
I found this helpful tip to use your WSL IP address.

Deploy Website

There are many ways to do this. Check the
Hosting & Deployment for many ways
to do this.

For my website dereklomax.com I prefer to use the
rsync
option.

Hugo is a static site generator which means to deply your website you want to
share files. There is no need to run the hugo live sever on your web server.
This live server is to help you in the development process of your website.