How To Setup and Start Blog on Operator’s System.

Step 1: Create Site (one-time-Process)

hugo new my-blog-site  
cd my-blog-site  
git init  
git submodule add https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod  

edit hugo.toml:

baseURL = https:localhost:1313/  
languageCode = "en-us"  
title = "my-own-blog"  
theme = "PaperMod"  

Step 2: Create a Post

hugo new posts/my-first-blog.md
edit content/posts/my-first-blog.md
at the top, change: draft: false
Start Writing Your Content Now…

Step 3: Run Local Sever

hugo server
open http:localhost:1313/
this is development mode, you haven’t yet publicly deployed , Press Ctrl+C to stop the server

Step 4: Generate Production Files

run hugo this will generate the production files with in public/

Step 5: Deploy public/ to Github Pages

create a repo on your github account username.github.io
run these commands (for first run):

git init  
git add .  
git commit -m "commit-message"  
git branch -M main  
git remote add origin git@github.com:<git_username>/<git_username>.github.io.git  
git push -u origin main  

run these every time you create a new post:

git add .  
git commit -m "commit-message"  
git remote add origin git@github.com:<git_username>/<git_username>.github.io.git 
git branch -M main  
git push -u origin main  

Operator’s Tip:

if you are using hugo for your blogging purpose
When you are writing something in body in the Markdown file.
Always use two spaces to break a line and start writing on the next possible line.