Post

Hugo Init Setup & CMD

Hugo is used for generating static sites using markdown. This blog has been created using Hugo.

Get Hugo using apt on Ubuntu based distros:

1
sudo apt install hugo;

Commands

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#Project Setup
hugo new site siteName
cd siteName
git init
#Sample hugo theme add as submodule
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
echo "theme = 'ananke'" >> hugo.toml

#Adding Content
hugo new content posts/postName.md

#Serve Hugo Projects
#for local
hugo server

#for production
hugo
This post is licensed under CC BY 4.0 by the author.