Jekyll is a great way to quickly build a blog site. I was looking for easier ways to setup a blog on bitbucket and stumbled upon Jekyll.
In this post I documented some steps to quickly create a blog (along with some posts) site and deploy it to bitbucket.
Install jekyll and create a new project
jekyll serve will generate all the files in the _site directory.
Open http://127.0.0.1:4000/ in a browser. This will render the blog.
This is the directory structure of the jeykll. config.yml => has the common settings that are used throughout the site. posts => posts directory the individual posts. The jekyll will generate the post htmls that will be created in the jeykll/update directory.
update about.md, posts.
You can see the updates by refreshing the http://127.0.0.1:4000/
Now that we have the blog running successfullly locally, we need to deploy it to the bitbucket.
create a bitbucket repository with the following format, username.bitbucket.org add all the files from _site folder to this repo locally and then push it to remote master. This are the complete commands.
Now, open username.bitbucket.org and you should see your blog.