I already had quite a few tools installed on my laptop, like ruby, jekyll, bundler. I had these tools installed because I onced used jekyll to create a static website for mcmi. It seems that I usually work on projects and come back to them after very long time, and forget everything about how I got things done. So now I plan to record steps I did on this blog for future reference.
So for this blog I started following the jekyll quick start guide.
1
2
3
4
5
6
#Create a new jekyll site
jekyll new myblog
#switched to directory
cd myblog
#Build the site on the preview server
bundle execute jekyll serve
Some changes I had to make in the _config.yml
include the following:
- under
site settings
changebaseurl
to/myblog
this is required for the live github repo to work properly - changing
gem
toplugins
under thebuild settings
- created a github repo by the name
myblog
- add it as remote using the command
git remote add origin git@github.com:beyond2013/myblog.git
- pushed local repo to remote
git push
- Under the settings of github repo move to section GitHub Pages
- In Source choose master branch and click Save
And thats it, the blog is now live.