To be honest, I quite dislike the default Github plugin for Octopress. While it works and is nice, It’s not at all what I would want on a blog. So I decided to make my own one, based on the Google Plus plugin that already existed. It was also a nice learning experience to create and install a plugin.
First off, I created the follwing
github_icon.html in the
The image I used can be downloaded from http://i.imgur.com/pKRJNiZ.png, and you need to save it into
source/images/. Thats probably the easiest part to do :)
Then, it needed the
github_icon_username variable, so in
_config.yml I added:
Obviously, replace ry167 with your github username.
It really needs styling, it breaks to hell otherwise. While you can apply the
googleplus class to it, you can also create your own by creating the following file,
Finally, enable the plugin by adding
Then you can have a nice button on the side like I do