Hello guys, its been so long, I havn’t written any post. Recently, I have migrated my blog from Pelican(python based static site generator) to Hugo(GO based static site generator). Today, I will write about it. You can explore my blog at surajnarwade.github.io

Installing Hugo

.

$ go get -v github.com/spf13/hugo
$ hugo help

Using Hugo

.

$ hugo new site myblog
$ cd myblog
$ tree 
.
├── archetypes
├── config.toml
├── content
├── data
├── layouts
├── static
└── themes

$ hugo new post/good-to-great.md
$ hugo
$ hugo server
...
....
Watching for changes in /home/snarwade/myblog/{data,content,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

$ cd themes
$ git clone https://github.com/LordMathis/hugo-theme-nix
languageCode = "en-us"
title = "<your title>"
baseURL = "https://<username>.github.io/"
theme = "your theme name"
disqusShortname = "your disqus shortname"

[params]
  GithubID = "your_github"
  GitlabId = "your_gitlab"
  TwitterID = "your_twitter"
  LinkedInID = "your_linkedin"
  GoogleplusID = "your_googleplus"
  FacebookID = "your_facebook"
  InstagramID = "your instagram"
  Name = "your_name"
  HeaderUsername = "username"
  HeaderHostname = "hostname"
  Email = "your_email"
  About = "info_about_you"
  ProfilePicture = "profile_picture_url"
  GoogleAnalytics = "your_google_analytics_id"

Deploying blog to Github

$ git clone git@github.com:<username>/<username>.github.io.git
$ cp -r public/* <username>.github.io/
$ cd <username>.github.io
$ git add --all
$ git commit -m 'First commit'
$ git push

Happy hacking || Happy writing !!!

(Comments are most welcome)