GitHub Badge

Get Version

1.2.3

What

Want to show off your projects on github to world?
Then a sexy badge on your blog would be awesome. Like the one above, but
for your github projects and forks. So, its awesomer.

Installation

Sample HTML to paste into your blog sidebar:

<div id="github-badge"></div>
<script type="text/javascript" charset="utf-8">
  GITHUB_USERNAME="drnic";
</script>
<script src="http://drnic.github.com/github-badges/dist/github-badge-launcher.js" type="text/javascript"></script>

A full outline of available options:

<div id="github-badge"></div>
<script type="text/javascript" charset="utf-8">
  GITHUB_USERNAME="drnic";
  GITHUB_LIST_LENGTH=10;
  GITHUB_HEAD="div"; // e.g. change to "h2" for wordpress sidebars
  GITHUB_THEME="white"; // try 'black'
  GITHUB_TITLE = "My projects"
  GITHUB_SHOW_ALL = "Show all"
</script>
<script src="http://drnic.github.com/github-badges/dist/github-badge-launcher.js" type="text/javascript"></script>

Only GITHUB_USERNAME is a required pre-set variable. The others above show the defaults, and can be changed by being specified.

<img src=“http://img.skitch.com/20080506-1cykawtg246kqibnuhtithqhsm.jpg” border=0 alt=“github-badge black theme” />

Black background? If your site has a black background the badge will automatically attempt to use the black_badge.css theme. If it doesn’t trigger for your site add the GITHUB_THEME='black' code to the configuration above.

Existing installations/demonstrations

Forum

http://groups.google.com/group/github

How to submit patches

Read the 8 steps for fixing other people’s code and for section 8b: Submit patch to Google Groups, use the Google Group above.

You can fetch the source from:

git clone git://github.com/drnic/github-badges.git

License

This code is free to use under the terms of the MIT license.

Contact

Comments are welcome. Send an email to Dr Nic Williams via the github forum

Dr Nic Williams, 27th January 2009
Theme extended from Paul Battley