Just a usual day woke up @ 06:55 and start the day handful of Linux commands
huh! i know it wired to start a day but it’s my way for it so don’t intervene my routine
today i finally start logging(blog) the things i do so
i use Hugo a static page generator written in go
it basically a Content Management System(CMS) where author create content only in form of Markdown then hugo basically convert into html file
hugo is mostly used for Blog for dev obviously cause normal can’t write markdown’s i know there are markdown editor around there - Obsidian - NoteTaking app uses markdown so you can use that with this
if you ever want a site like this i’m here to share my step to install/deploy it
Requirement
- basic knowledge on computers i.e file system, networking
- a computer to install it
- time to invest into this
Installation
It supports - Linux - BSD - Windows - Mac OS
Linux
Arch Linux
firstly install Hugo using
sudo pacman -S hugo
or you can compile it from source
you need to visit the official docs
after installing Hugo you need initialize the site
hugo new site <site-name>
cd <site-name>
this will create a folder with the name of <site-name>
if you need a theme for your site you can find it on themes.gohugo.io follow installation steps on theme docs adding theme as git sub module is recommended
to preview the site you can start dev server by
hugo server
Adding Content
if you are able to follow my step great i’m proud of you because finally someone can understand me
now, after the successfully run the dev server and knowing that nothing gone wrong in above step, you can add content to your site by command
hugo new content content/posts/<filename>.md
note : the content is nothing but the markdown file you can edit that with any text editor or you can use note taking app - [Obsidian] i’m not linking non-FOSS application - Joplin - Foss
the above command will create a file with name <filename.md> inside
<site-root>/content/posts
if u open that file with the editor you will see
+++
date = '2025-01-11T09:54:08+05:30'
draft = true
title = '11012025'
+++
note : by default hugo set draft to true that means that file isn’t gonna publish, after complete the content of the file you can edit that to false to publish it
if you need to see a draft content on site you can by
hugo server --buildDrafts
hugo server -D
Deploy
Finally if you need to Deploy it
you can by
hugo
this will create a folder public/
then you can see the internet about how to host a site using nginx, Apache, httpd
that’s all i know about Hugo now(10:07 - 11/01/2025)
if you want more about Hugo visit https://gohugo.io or wait for more from me until then bye bye!
After writting this thing i didn’t do much rather than roaming around the city insearch of desk for my computer and then nothing came home late then ate dinner and listen to saftey thrid podcast that’s it for that day