First Post
Jul 27, 2015 · 2 minute read · Commentsgeneral
I’ve been meaning to make a blog for sometime, in order to just get back to writing, like I used to do when I was younger. This would also serve as a project for me, as I am not too familiar with working with the web.
I’ve worked with Jekyll, for a bit, when I was making some changes on Rebel Tools, and it was pretty fun so I did consider using Jekyll for this blog. However, I chanced upon Hugo, which is a static HTML generator in Go.
I decided to go with Hugo as it is fast (way faster than Jekyll), and it seems cool to try out a new technology!
I decided to go with Hyde-X, an enhanced port of the Jekyll ”Hyde” theme, as it’s simple and looks clean.
It was pretty simple to set this blog up. I don’t think that this steps are in the correct order, but it worked :)
- Create a new GitHub repo, and switch the default branch to gh-pages
brew install hugo
hugo new site
mkdir themes
cd themes
git clone https://github.com/zyro/hyde-x
- Edit the config.toml file in order to edit content that will be generated
- And then you just need to run
hugo --theme=hyde-x
- cd into the public folder
git init
git remote add origin git@github.com:username/repository
git add
git commit -m message
to commit locallygit push origin gh-pages
to push to github
If you’d like to set up a custom domain, there are different steps to take if you were to set up as a project site versus as your main site. Do read up on GitHub for help with that. As this is a project site, I went to my domain registrar, added a CNAME record that pointed to nikhilsh.github.io
with the blog
as the host. I then went over to the folder named static and added a CNAME file there too.
And that’s basically it!
written by @MeNikhil