Plugin to display Github Repos in Posts for Octopress. The plugin uses JoelSutherland/GitHub-jQuery-Repo-Widget to generate a box for displaying your favourite Github repo in your posts.
-
Clone Github jquery Repo Widget to your computer
git clone https://github.com/JoelSutherland/GitHub-jQuery-Repo-Widget
-
Clone githubrepo-octopress to your computer
git clone https://github.com/sotsy/githubrepo-octopress
-
Copy
jquery.githubRepoWidget.min.js
inyouroctopressfolder/source/javascripts
and putgithubwidget.rb
intoyouroctopressfolder/plugins
-
Merge
head.html
withyouroctopressfolder/source/_includes/custom/head.html
Shortcode for adding Github Repo to your post
{% githubrepo sotsy/githubrepo-octopress %}
Make sure you set the full name in the shortcode. Otherwise the .js doesn't find the correct repo.